js/jquery/jquery.js
into js/jquery/jquery.min.js
in the JS optimization exclusions.
]]>On the Web Dev test (https://lighthouse-dot-webdotdevsite.appspot.com//lh/html?url=https%3A%2F%2Freclaimdesign.org%2Fdiy-trellis-ideas%3Fao_noptimize%3D1#performance) I’m getting this flagged:
https://www.dropbox.com/s/ngh84ilr8lhjz8o/a01.jpg?dl=0
I’m not sure if is something to do with autoptimize or async javascript, and wondered if you could advise how to define jquery in this case?
These are the javascript options I have set in autoptimize:
https://www.dropbox.com/s/p67j8ja3p9mzupy/ao-javascript-options.jpg?dl=0
And the settings in async javascript:
https://www.dropbox.com/s/vrd44pck0b60d6l/async-javascript-options1.jpg?dl=0
https://www.dropbox.com/s/70x89mzgz306zwz/async-javascript-options2.jpg?dl=0
https://www.dropbox.com/s/2y49bmkosnh4yii/async-javascript-options3.jpg?dl=0
I deferred “jquery.js” under Scripts to Defer as this helped with test performance results, and when testing my site everything seems to work as it should. Not sure if this has something to do with it?
Thank you very much for helping me to see the wood for the trees!
Michael.
]]>I don’t know how to fix it, but I’d like to keep using both plugins.
https://www.ads-software.com/plugins/inline-google-spreadsheet-viewer/
]]>https://www.ads-software.com/plugins/autoptimize/
]]>https://www.ads-software.com/plugins/wp-spamshield/
]]>I installed the plugin, turned it on and went into a single post ([custom post type] content in this post was already made long before installing the plugin and it contains shortcodes I have no yet been able to implement) and pushed the MotoPress Content Editor button and I get the same error message constantly.
“An internal error occurred during loading Content Editor. Please submit this data to support team.
ReferenceError: jQuery is not defined.”
I have jQuery being enqueued as shown in my functions.php
The installation instructions does not mention anything in regards to adding jQuery to TinyMCE
https://www.ads-software.com/plugins/motopress/
]]>https://www.ads-software.com/extend/plugins/uk-cookie-consent/
]]>jQuery(document).ready(function($){
$(".stripeMe tr").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});
$(".stripeMe tr:even").addClass("alt");
});
jQuery is enqueued and another jQuery script is running further down the page. I have the nonconflict/$ wrapper on as you can see, yet I get only “jQuery is not defined” error. The page has no HTML errors. I have this script running successfully on another site. WordPress is updated to 3.0.1.
I have tried calling script as separate file and with full script in the header. I have checked and made sure there is no space at start of the script or the lines within it.
I have disabled all plugins (no difference) and reinstalled wp-includes and also wp-includes/js by over-writing as well as deleting and then uploading. Currently only “Q and A” plugin is activated.
I have tried enqueueing jQuery and the script in functions.php.
Nothing works… I don’t write javascript, and have spent most of today on this. What else can I look for?
]]>