Linux 软件免费装
Banner图

jQuery & Plugins Asynchronous Loader

开发者 killbill-sbor
更新时间 2017年3月15日 21:28
PHP版本: 4.1 及以上
WordPress版本: 4.7.2
版权: GPLv3
版权网址: 版权信息

标签

jquery optimization insights loader minify pagespeed render blocking above the fold jquery is undefined

下载

详情介绍:

Loading of JavaScript resources should be done asynchronously, in a non-blocking manner, so the load time of your webpage will not be affected (it would not be delayed by render-blocking JavaScript). But using of deferring or async loading of jQuery causes lots of problems with jQuery plugins. This plugin replaces default Wordpress's JS loader with a special jQuery loader (jQl), that's why there are no any errors with jQuery plugins. It's highly recommended to use any concatenate plugin, e.g., Fast Velocity Minify or WP Fastest Cache. Please, do not add jQuery to the ignore list, because this plugin fixes “undefined jQuery” errors on the console log. Also, it is allowed to use defer or async parsing of JS files. It requires Wordpress 4.1 and newer. It is available in English and Russian.

安装:

  1. Install the plugin using FTP or Wordpress Dashboard.
  2. Activate it.
  3. Optionally you can disable jQuery CDN replacing on Settings → jQuery Async Loader page.
It's highly recommended to use any concatenate plugin, e.g., Fast Velocity Minify or WP Fastest Cache. Please, do not add jQuery to the ignore list, because this plugin fixes “undefined jQuery” errors on the console log. Also, it is allowed to use defer or async parsing of JS files.

屏幕截图:

  • jQuery & Plugins Async Loader Settings page

常见问题:

How it works?

  1. The plugin loads small JavaScript code in the header. This is jQl developed by Cédric Morin (jQuery async loader);
  2. Then it loads minified jQuery from Google CDN (optional, you can disable it on settings page);
  3. And finally, it replaces all tags with a special function.

I see scripts loaded through tag, is it OK?

Yes, that's okay for Google Analytics, Facebook pixel, Twitter tag and many other external scripts. But please make sure that all your theme and plugins scripts are included correctly through wp_enqueue_script or similar functions

更新日志:

1.1 1.0