sandywp / plugins / asynchronous-jquery-loader

jQuery & Plugins Asynchronous Loader

This plugin asynchronously loads jQuery and its plugins without "jQuery is undefined" errors.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v1.1 10+ installs WP 4.1+

your-sandbox.sandywp.com/wp-admin
jQuery & Plugins Asynchronous Loader running inside a SandyWP sandbox

What you get inside

1 screen
  • jQuery & Plugins Async Loader Settings page

About this plugin

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.

Questions

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

sandywp / also on the shelf

Try another plugin

  • Smart Image Loader

    5.0 · 100+ installs

    Smart Image Loader is a fire-and-forget priority and lazy loader for image sources. Can be a huge performance boost especially…

  • Inline JS block helps in adding above the fold JS or for your Advanced customization needs.

  • Provides precise control of which media (images) are lazy-loaded for optimum page load performance.

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.