Optimize site speed

Permalink
Hi,

I'm trying to optimize the load speed for my sitehttp://www.gnrconstruction.eu and I'm stuck on 2 issues

1.
"The following inline script blocks were found inhttp://www.gnrconstruction.eu/ between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resource.

Inline script block #1
The following external CSS files were included after an external JavaScript file inhttp://www.gnrconstruction.eu/.... To ensure CSS files are downloaded in parallel, always include external CSS before external JavaScript.

http://www.gnrconstruction.eu/application/files/cache/css/dae0ecfc3...
and

2

"The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:

http://www.gnrconstruction.eu/application/files/cache/js/058ca8e246... (4 hours)
http://www.gnrconstruction.eu/application/files/cache/js/666de6f7ec... (4 hours)
http://www.gnrconstruction.eu/updates/concrete5.7.3.1/concrete/js/j... (4 hours)"

Do anyone have any suggestions please? All the other tests are ok.

Many thanks

Richard

 
Cahueya replied on at Permalink Reply
For issue No1: You can move the scripts around in your header.php or footer.php as you wish. I have not yet tried that in 5.7, but it should go all the same.

For issue No2: You can add some code to your .htaccess to define lifetime of certain cacheable objects.

I've got this in one site:
# Set up 31 days caching on commonly updated files
<FilesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A2678400
Header append Cache-Control "proxy-revalidate"
</FilesMatch>


Which will set 31 days lifetime for xml/txt/html/js/css files. Only makes sense for a "finished" site where no big changes in CSS and JS happen every day.