Search code examples
pagespeedpagespeed-insights

Reduce critical chain in Google Page Speed insights due to initial double step


Why would this site that I manage have a double step in chain on the landing page, according to Google Page Speed?

enter image description here

I'm using handlerbars and on the main.hbs, I have something like

<head>
  ...
  <link rel="stylesheet" href="/css/mergedInit.css" media="screen" />
  ...
</head>
<body>
..
..
    <script src="/client/jquery/jquery.min.js"></script>
    <script src="/client/main.js"></script>
</body>

It has to do with any HTTP redirect? Where that initial double step might come from?


Solution

  • The issue occurs because the test is run on the HTTP version of the website which gets automatically redirected to the HTTPS

    Running the PageSpeed Insights tool directly on the HTTPS version of the website (https://developers.google.com/speed/pagespeed/insights/?url=https://autocosts.work/US) resolves the problem