Request: Please update JS code
-
Hello again ),
Can you please update your front.js and change:
FROM
jQuery( document ).ready( function( $ ) {
…
})TO
document.addEventListener(‘DOMContentLoaded’, function(event) {
…
})Many SEO optimization plugins move JS files in footer of the website. In this case JQUERY is available later then your script require it.
There are several more issues why it is not good to be tied with JQUERY untill document loaded. Anyway, all users who is using such plugins will get “JQuerry is not defined” error in your script.
Using simple JS is much better and risk free.
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Request: Please update JS code’ is closed to new replies.