You can edit the head.js file of your blog because that is the javascript file that loads javascripts asychronously.
But, make a backup of website before attempting this.
Sure thing, I have started an issue here:
https://github.com/parisholley/wordpress-asynchronous-javascript/issues/3
I may get the itch to do it tonight, otherwise this weekend…
this feature is now in 1.3.0
Thread Starter
P T
(@pthomson87)
Hello Paris!
Wow! Thanks so much for taking on board my suggestion and implementing it into the next release.
When do you expect version 1.3.0 will be available via the WordPress Plugin repository?
Regards,
Paul
Hi, great plugin, but it is unclear to me how to exclude specific files. I tried this below on line 125 but cannot get the syntax right. Please let me know if you have any suggestions.
function filter_headjs(){
$options = get_option(‘asyncjs’);
$names = split(‘,’, $options[‘exclude_name’]);
$files = split(“jwplayer.js,jquery.flexslider.js,jquery.ui.totop.min.js,custom.js,swfobject.js” $options[‘exclude_js’]);
Thread Starter
P T
(@pthomson87)
buddahtunes,
upgrade plugin to latest release, go into the plugin settings in wp-admin and add either the plugin name or javascript file… all pretty self explanatory. I can confirm working correctly, thanks to Paris!
remove the code you posted it’s not needed.
Paul