Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #305343

    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

    #305382

    Hey Ed!

    I wouldn’t recommend it and it would have no visible impact on page loading speed anyhow.

    Best regards,
    Devin

    #305481

    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

    http://prntscr.com/4dqxz6

    #305738

    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

    • This reply was modified 10 years, 3 months ago by Dude.
    #305785

    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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Any Suggestions for enfold/js/’ is closed to new replies.