Really hoping someone can help with this. I've been battling it for hours and seem to be getting nowhere.

Google Page Speed is penalizing us and saying we need to 'Eliminate render-blocking JavaScript and CSS in above-the-fold content'. There is a .js file in question; which I believe to be prototype.cs (my js is compressed so the file names are all weird, but if I open it up I believe it's this). It's also bringing up my fonts https://fonts.googleapis.com/… etc on CSS.

How and where do I fix this? Our mobile page speed is 55/100 with this being the biggest one. I would like to get it higher.

  • This isn't really relating to Magento so much as about JS and page optimisation, you'd be better asking this in a more appropriate SE board Commented Nov 23, 2015 at 1:52
  • I posted it on the Magento board because 1. my css files are all messed up on Magento with the file name since merging and 2. I don't know where to add this in Magento. I can find the answer to regular sites; infact it's relatively easy for that, but i've no idea if i'm changing things in an .xml, .phtml or the actual .js / css file. So yes, it is relevant to Magento.
    – IVCatalina
    Commented Nov 23, 2015 at 2:02
  • Have you tried: varvy.com/pagespeed/defer-loading-javascript.html ?
    – B00MER
    Commented Nov 23, 2015 at 4:20

1 Answer 1


Although, not a direct answer, but,

If you are trying to defer the parsing of prototype.js, I'd strongly suggest against that. This file is responsible for many functions on the page, even for above the fold content, including menu bar and search form. 55/100 score shouldn't be only because of this file. You should focus on improving other things first. Deferring of JS is a general recommendation which doesn't apply to Magento unless you have some extra strong knowledge of prototype and Magento both. It will also require modification of a lot of files in your whole theme.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.