$cnf) { $options['jsdelivery_idle'][$n] = $cnf[0]; if (isset($cnf[1])) { $options['jsdelivery_idle'][$n] .= ':' . $cnf[1]; } } } ?>
We have published a new plugin for Javascript optimization. It is advised to use the new plugin for access to the latest technologies and long term support.
Install new plugin
When enabled, Javascript files are loaded asynchronously using an enhanced version of little-loader from Walmart Labs (reference).
Warning: It may require some tweaking of the settings to prevent javascript problems.
A stable async script loader that works in old browsers.
This script loader requires the Javascript proxy to be enabled to bypass CORS.
A state of the art script loader for optimal mobile speed, inspired by basket.js (by a Google engineer), a script loading concept in use by Google. With fallback to little-loader for old browsers.
Advantages of the HTML5 script loader
Select the position where the async loading of Javascript will start.
Scripts to ignore in Javascript delivery optimization. One script per line. The files will be left untouched in the HTML.
Scripts to remove from HTML. One script per line. This feature enables to include small plugin related scripts inline.
When enabled, all scripts are loaded asynchronously.
Enter (parts of) scripts to force to load async. All other scripts are loaded in sequential blocking order if not specifically configured as async in HTML.
Example:
Enter (parts of) scripts to force to load blocking (non-async).
This feature requires the HTML5 script loader.
This feature only applies to localStorage cached scripts. Our new plugin will enable this option for all scripts.
Enter a list with script_string[:timeout_ms] entries (one per line) to execute scripts in CPU idle time within an optional timeout in milliseconds. This feature enables to prioritize script execution. (more information)
script_string[:timeout_ms]
Example: script.js:2000 (script.js should execute when CPU is available or within 2 seconds). Timeout is optional.
script.js:2000
When enabled, scripts will be loaded in sequential order abiding the WordPress dependency configuration from wp_enqueue_script().
When enabled, a queue captures basic jQuery functionality such as jQuery(function($){ ... }); and $(document).bind('ready') in inline scripts. This feature enables to load jQuery async.
jQuery(function($){ ... });
$(document).bind('ready')
When enabled, the widget module from jQuery Lazy Load XT is loaded to enable lazy loading of inline scripts such as Facebook like and Twitter follow buttons.
This option is compatible with WordPress lazy load plugins that use Lazy Load XT. Those plugins are not required for this feature.
');?>