Help Wordpress

Blog about WordPress, plugins, themplates and more…
Home » Plugins » SLON Example

SLON Example

SLON Example
5 (100%) 2 votes

Reconnecting JavaScript leads to its re-execution, i.e. issue of the site productivity. Also, this can lead to unpleasant side effects – for example, if a given script binds an action to a click on a certain element, when pressed this action will be executed several times.

Few weeks ago I wrote most popular reasons of this problem: direct connection between head tags, use low-quality or old themes/plugins, using different IDs in wp_enqueue_script function.

This simple plugin demonsrate the SLON technology (more about SLON technology). You can choose, from where load Bootstrap for your site – from your site (plugin directory), from BootStrap CDN, or dont load BootStrap (in case, if BootStrap load via your theme).

Example 1, Bootstrap will load from Max CDN:

Bootstrap will load from Max CDN

Bootstrap will load from Max CDN

Example 2, Bootstrap will load from your site (from plugin directory):

Bootstrap will load from plugin directory of your site

Bootstrap will load from plugin directory of your site

1. Upload the plugin files to the /wp-content/plugins/wa-slon-example directory;
2. Activate the plugin through the ‘Plugins’ screen in WordPress;
3. Use the “WA plugins > SLON Example” menu and choose, from where load Bootstrap;

Download free WooCommerce plugin.

Posted 2 weeks ago
Category: Plugins
Tags: , ,

If you like this plugin, please click on one of the buttons to share it with your friends. Thank you!

Related posts:


Enqueue scripts in WP plugins. Single Load Only.

Enqueue scripts in WP plugins. Single Load Only. In this post I want discuss one of the problems with WordPress plugins/themes – reconnecting javascript. Connecting the script several [...]

WordPress PageSpeed optimization

WordPress PageSpeed optimization Quite often turn to me with a request to “speed up site” – say, Google shows 50 out of 100, and because of this the [...]

No Comments

No comments yet.

RSS feed for comments on this post.

Leave a comment

Last Polls: