开发者 | kylereicks |
---|---|
更新时间 | 2014年2月18日 08:00 |
捐献地址: | 去捐款 |
PHP版本: | 3.2 及以上 |
WordPress版本: | 3.8.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
wp_enqueue_script()
and that any script enqueued in the <head>
intends to be loaded before the rest of the page.
/wp-content/plugins/
directoryThere 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.
There are a few reasons why a script might still be loaded conventionally.
wp_enqueue_script()
.<head>
intends to block the rest of the rest of the page from loading until it is finished.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()
.
Yes it is. Head.WP