Google Speed Test Issue

Andre Pfanz asked on October 13, 2016 21:34

We are using Kentico v9 and are having a problem with the Google Speed test. The most serious issue is this:

Eliminate render-blocking JavaScript and CSS in above-the-fold content

for these files:

WebResource.axd GetResource.ashx ScriptResource.axd

I'm sure Google would prefer I remove these script tags, but I know that's not possible. Is there any way these can be moved to the bottom of the page or add an async attribute to the script tag? Right now we have a low score because of this issue.

Recent Answers


Anton Grekhovodov answered on October 17, 2016 13:08

There is resource combiner which may help you: http://pmc.digital/en/blog/june-2016/resource-combiner-with-kentico-portal-engine/

Or you can write your own output filter which will move all resources to the end of body tag.

1 votesVote for this answer Mark as a Correct answer

Andre Pfanz answered on October 17, 2016 16:10

Thanks Anton. That looks like it's what I needed. However, I'm having trouble with this from the readme.txt file:

Add the bolean setting PMCResourceCombinerEnabled to the default Kentico Custom Module on your website and enable it

Do you know where on the admin interface we add this?

0 votesVote for this answer Mark as a Correct answer

Anton Grekhovodov answered on October 17, 2016 16:22

Andre,

In Modules find your module, when you open it, there will be Settings sub-tab and you can add a settings key there.

Documentation: https://docs.kentico.com/display/K8/Adding+custom+website+settings

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.