Helper Wordpress

Helper Wordpress

Wordpress can be fast. Very fast. Really :)

SLON Example

SLON Example

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.

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

Related posts:

Lazy Load Google Maps

Lazy Load Google Maps

Lazy Load Google Maps will improve the performance of your initial page load, especially if there are two or more maps embedded on the same page. I think, [...]
Best image optimizer wordpress

Best image optimizer wordpress

For good speed results of your website without doubt, very important optimize images. Loading image 200 kb – is not the same as loading image 100 kb. Seems [...]

Leave a Reply

Your email address will not be published. Required fields are marked *