I would like to know if you have any suggestion for placing the enfold/js.
Google speed test says its blocking loading.
Can I move this js to the footer or will that cause problems ?
http://fritzimages.com/…-content/themes/enfold/js/avia-compat.js
thanks a lot
Hey Ed!
I wouldn’t recommend it and it would have no visible impact on page loading speed anyhow.
Best regards,
Devin
Really, Is enfold JS need at initial load above header… I was wonder if it could be loaded in footer and not header to assist with GS score. II was wondering what your experience was
Hey!
Yes, we recommend to keep it in the head section. Otherwise you might experience flickering or temporary styling issues because the compat script tries to detect certain browser features which are required for modern css3 styling code. If you move the script to the footer it will cause a loading delay which will also affect the page styling (at least for a few miliseconds but it depends on the size of the other resources like images, etc.). You can move the script to the footer (because it won’t break the theme js or php code) but there’ll be noticeable side effects with css3 styling code.
Best regards,
Peter
Okay, thanks for the detailed explanation, I don’t want to break my theme, So I won’t spend anytime moving it to footer.
thanks for the support