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).

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;