You are here:  » Page speed google inside


Page speed google inside

Submitted by wesse249 on Thu, 2015-12-10 11:23 in

Hallo David,

When check my website in Google pagespeed Insights. They tell me to change some things like:

Enable/use browser caching

Enable compression

Block or remove JavaScript and CSS content above the fold

reduce css size

reduce html size

Is this difficult to realize?

Thanks Jan Roel

Submitted by support on Thu, 2015-12-10 13:44

Hello Jan,

Cache advisory and compression can both be enabled at the top of html/header.php. If you are updating feeds daily, one option would to be to set a cache control header with an expires value equivalent to 24 hours. To do this, look for the following code at line 4:

  header("Content-Type: text/html;charset=".$config_charset);

...and REPLACE with:

  header("Content-Type: text/html;charset=".$config_charset);
  header("Cache-Control: max-age=86400");
  ob_start("ob_gzhandler");

Early versions of the Responsive HTML template did have the call to include the Foundation JavaScript in the footer - check whether your site has the following line in html/footer.php;

  <link rel='stylesheet' href='<?php print $config_baseHREF?>html/vendor/foundation.min.css' />

And if so, move it from there into html/header.php immediately following the jQuery include line.

Hope this helps!

Cheers,
David.
--
PriceTapestry.com