I’ve been doing a lot of work optimizing my site recently. Compressing and combining images to reduce http requests, turning off unused modules, and setting up AdvAgg.
I’ve managed to speed my site up considerably, with 95/96 scores on PageSpeedInsights and good times on WebPageTest. However, I have some remaining issues. Here’s my test:
Things that still bother me are:
[list=1]
[]The seriously slow Optin Monster load times.
[]The Slow Facebook load times.
[*]I don’t even know what https://a.mstrlytcs.com is or why it is loading.
[/list]
As I said above, I used the AdvAgg module to optimize CSS, JS, etc. I used an optimization guide I found on Drupal.org as well as one that came with the newest version of AdvAgg. The only thing in those guides that I skipped was the AdvAgg Bundler which, ironically enough, increased the amount of blocking css and js files reported under PageSpeedInsights.
Any third party content will reduce your speed. Test it out by removing all third party content & run a test, compare it to a test with your third party content enabled. Localize as much third party content as you possibly can in order to preserve fast speeds.
Also use this in your htaccess instead of relying on that tool. This automatically compresses js/css files.
[code]#Deny attempts to view the Htaccess file.
<Files .htaccess>
Order allow,deny
Deny from all
Header set Cache-Control "public"
Header set Cache-Control "public"
Header set Cache-Control "private"
Header set Cache-Control "private, must-revalidate"
# END Cache-Control Headers
BEGIN Turn ETags Off
FileETag None
END Turn ETags Off
[/code]
You can also compress them here but if you do, you should upload them one at a time to make sure the compressor didn’t break any functionality.
Compressing with htaccess will ensure that you don’t break any functionality.