Request: Please change some JS to avoid problems
-
Hello,
First of all THANK YOU for plugin.
Please change your JS code which you embed directly in to page when using “yasr_visitor_votes” shortcode from
jQuery(document).ready(function() {
…
});to
document.addEventListener(‘DOMContentLoaded’, function(event) {
…
});because many script and css optimization plugins shift jQuery to the page footer and you always get “jQuery is not defined” with your embedded code.
In this place, you don’t need to be tied up with jQuery. Later yes, but not on page loading. Simple JS is enogh and will work in all cases.
Thank you.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Request: Please change some JS to avoid problems’ is closed to new replies.