hkellecioglu
Member
Posted 2 years ago #
Excellent plugin thanks for it.
There is a minor bug I think. Apache error log shows the following errors but plugin works without a problem.
PHP Warning: array_unique() [function.array-unique]: The argument should be an array in .../wp-content/plugins/headjs-loader/headjs-loader.php on line 75
PHP Warning: Invalid argument supplied for foreach() in .../wp-content/plugins/headjs-loader/headjs-loader.php on line 77
http://wordpress.org/extend/plugins/headjs-loader/
durin
Member
Plugin Author
Posted 2 years ago #
This was an issue if no javascript was declared. Version 0.1.1 has more control logic around empty values which should fix this.
thomasdk81
Member
Posted 2 years ago #
Hi,
When HeadJS Loader is activated I get following errors:
jQuery is not defined
jQuery(document).ready( function($) {
window.attachEvent is not a function
window.attachEvent('onload',pngfix);
The first error is because the script is loaded right before HeadJS Loader and then jQuery isn't loaded yet.
I dont have a clue why the last one is appearing. The site is http://2011.landdistrikterne.dk a development site, so I don't know how long it will be in the same state.
thomasdk81
Member
Posted 2 years ago #
ohh sorry for hijacking this topic.