Head.WP

توسط

Head.js is a script to asynchronously load and manage dependencies of javascript and CSS assets.

This plugin loads the scripts and styles enqueued in footer with the head.js loader. It does not include head.js’ feature detection.

Head.js.wp assumes that scripts are loaded via wp_enqueue_script() and that any script enqueued in the <head> intends to be loaded before the rest of the page.

  1. Upload the plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

سوالات متداول

Where are the plugin options?

There aren’t any, but the plugin counts on scripts being properly enqueued in the footer with correctly listed dependencies. See wp_enqueue_script in the Codex.

Why are my site’s scripts still loading conventionally (i.e. without head.js)?

There are a few reasons why a script might still be loaded conventionally.
* Head.WP ignores any scripts that are not added via wp_enqueue_script().
* Head.WP only works with scripts enqueued in the footer, it assumes that any script enqueued in the <head> intends to block the rest of the rest of the page from loading until it is finished.

Why are my other scripts not working as expected?

If a script has no dependencies, head.js will execute that script as soon it is loaded. To ensure that scripts are executed in the correct order, make sure to list all required dependencies in wp_enqueue_script().

Is this plugin on GitHub?

Yes it is. Head.WP

تصویری برای این آیتم موجود نیست.
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
2.0.3 20 کیلوبایت -
دانلود
×
بدون امتیاز

قیمت:

رایگان

نگارش

2.0.3

آخرین انتشار

31 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

10+

نگارش وردپرس

وردپرس 3.2+

تست شده از نسخه

وردپرس 3.7.41

نگارش PHP

-

نسخه ها

1 نسخه