wpzoom / instagram-widget-by-wpzoom

The easiest way to add a nice Instagram widget on your WordPress site. It just works!
https://wordpress.org/plugins/instagram-widget-by-wpzoom/
GNU General Public License v2.0
21 stars 6 forks source link

Load JS assets in footer #10

Closed chesio closed 4 years ago

chesio commented 4 years ago

Hi,

Loading JavaScript assets in footer is a recommended web performance optimization technique - unfortunately your plugin does not do it. Would you consider fixing it? Both JS files (instagram-widget.js and jquery.lazy.min.js) are included on every page (regardless if there is a Instagram widget present or not) and are dependent on jquery and wp-utils assets, so it would really be great to have them included in footer instead of header.

Btw. I would gladly submit a PR, but I noticed this repository is no longer up to date with the version available at WordPress Plugin Directory...

llemurya commented 4 years ago

Hello @chesio we fixed it, the changes will be available in the next update. Thanks for your contribution.