Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
marklcfc Posted July 26, 2016 Posted July 26, 2016 Enable compression and Leverage browser caching are the two main recommendations in red on my forum in google analytics. My home page only had a score of 49 The main things it tells me is things such as this under Enable compression Compressing http://www.mysite.co.uk/…0e4317516f62ad1849cd4fc1.js?v=36beede563 could save 244.4KiB (76% reduction). The above link goes to forums/uploads/javascript_global/root_framework.js.f5fd60b20e4317516f62ad1849cd4fc1.js?v=36beede563 How come this isn't compressed, is it normal for it not to be? In 3.4 I know we have minify js options etc, does that still happen? For leverage browser caching I have lots of messages for files in uploads/profile with (expiration not specified) at the end
BostonBob Posted July 26, 2016 Posted July 26, 2016 The only way I solved this problem was to switch my CDN from Amazon Cloud to MaxCDN and let them handle the Cache issue on their backend. Also, they have http/2 support so its unlimited streams with one open connection. Once I did this, and did some other tinkering, I'm scoring a 98 / 94 on GTMetrix. .
marklcfc Posted July 26, 2016 Author Posted July 26, 2016 I've never used a CDN myself, haven't been sure how beneficial it would be.
marklcfc Posted July 27, 2016 Author Posted July 27, 2016 So is a CDN now necessary, do Invision not minify JS anymore as it was in 3.4?
ASTRAPI Posted July 27, 2016 Posted July 27, 2016 CDN is useful if you have members around the world as they distribute your static content around the globe on the there network and when a user request an image for example from another country he will get it from a server from the CDN close to him.They can also minify css and js files ..... For the first part you can't do anything using the one and only server for your IPB. For the second part why to get the load/network traffic of sending an image on a user and minify files if another one can do it better faster and free?
marklcfc Posted July 27, 2016 Author Posted July 27, 2016 Well my server is based in the uk and 86% of my visitors are uk, should I be looking at a specific cdn or are they all much the same? Which is the best for quite a busy forum? I literally have no knowledge on this area!
ASTRAPI Posted July 27, 2016 Posted July 27, 2016 There are many options but most users use Cloudflare. https://www.cloudflare.com/ You can try it as it is free What's included on free plan: Fast site performance Broad security protection SSL Powerful stats about your visitors Peace of mind about running your website so you can get back to what you love Check also the big network that they use around the world: https://www.cloudflare.com/network-map/
Adlago Posted July 27, 2016 Posted July 27, 2016 On 26.07.2016 г. at 11:57 AM, marklcfc said: Enable compression and Leverage browser caching are the two main recommendations in red on my forum in google analytics. My home page only had a score of 49 Post a link to your site - any external test may suggest a solution.
Adlago Posted July 27, 2016 Posted July 27, 2016 @ASTRAPIDo you have any idea why Google Developrers "dislike" CDN and Cloudflare. Here is an example of a site @BostonBob -> GtMetrix is OK 98/94 but Google Developers is bad - only 68/100 mobile and 79/100 desk. Such results have all sites using CDN including this forum.
ASTRAPI Posted July 27, 2016 Posted July 27, 2016 I can create a post and reach IPB posting limit very easy talking about it As i don't want to explain a lot of technical details for days i am just posting two links that you can read and one of it has info related to CDN's : https://blog.wp-rocket.me/the-truth-about-google-pagespeed-insights/ https://premium.wpmudev.org/blog/why-trying-to-get-95-on-google-pagespeed-insights-will-drive-you-mad/?hpv=b&utm_expid=3606929-74.aeX0WyvtRVa7qMe8Ph5smw.1
marklcfc Posted July 27, 2016 Author Posted July 27, 2016 My forum is 42/100 on mobile and 50/100 on desktop according to pagespeed insights, not good at all. It was in the 70s before I upgraded to 4.1 from 3.4 last week
ASTRAPI Posted July 27, 2016 Posted July 27, 2016 If you care about your forum performance you should start with the basics having the faster possible setup using for example: NGINX - MARIADB - PHP-FPM (Multiple pools) - OPCACHE - MEMCACHED - PAGESPEED Module ........ Then optimize your system and network and kernel and all the above software.... Get a fast server and use a CDN..... Optimize your images and you are almost done Trying to satisfy google's developers numbers may not end and you may not get the performance gain that you think even if you improve them ....
marklcfc Posted July 27, 2016 Author Posted July 27, 2016 I had Nginx before PHP 7 upgrade but I've been told I can't use Nginx with the current version of PHP 7 and Easy Apache 2.4. I also requested PHP-FPM, and was told cPanel isn't supporting it. and memcached but again the latest versions I have installed Easy Apache 2.4 doesn't support it?
ASTRAPI Posted July 27, 2016 Posted July 27, 2016 One more reason to not use control panels All the above can work on cpanel server ! But what they say i think is that they can't help you or point you to a related solution as they do not officially support it ! So you may try using Google search....
BostonBob Posted July 28, 2016 Posted July 28, 2016 8 hours ago, Adlago said: Google Developers is bad - only 68/100 mobile and 79/100 desk. Don't reach for google's speed test. It actually doesn't rate speed. It's kinda bogus test.
Adlago Posted July 28, 2016 Posted July 28, 2016 1 hour ago, BostonBob said: Don't reach for google's speed test. It actually doesn't rate speed. It's kinda bogus test. Well no, not bogus this test. I think that the test GtMetrix is deceptively good. Best online test has Dareboost. Google Developers test It is very close. See you to your Dareboost test and you will see. https://www.dareboost.com/en/report/5799b8fa0cf27e4f611b7a9c
marklcfc Posted July 28, 2016 Author Posted July 28, 2016 If I use opcache what do I need to select in advanced configuration > data storage as there is no opcache option listed. In other words, how do I set it up once my hosts enable it?
marklcfc Posted July 28, 2016 Author Posted July 28, 2016 Also surely it's not normal to have such poor results in parsing of javascript etc? Is there a known solution to this problem that I'm missing? It was never so low on 3.4.
Adlago Posted July 28, 2016 Posted July 28, 2016 25 minutes ago, marklcfc said: Also surely it's not normal to have such poor results in parsing of javascript etc? Last night I you wrote to select JS 'Just before </body> tag'. Now I see that you have not done so. Is there a reason you do not do that?
marklcfc Posted July 28, 2016 Author Posted July 28, 2016 2 minutes ago, Adlago said: Last night I you wrote to select JS 'Just before </body> tag'. Now I see that you have not done so. Is there a reason you do not do that? I have done that now
marklcfc Posted July 28, 2016 Author Posted July 28, 2016 The page load time is getting longer with every change I make though
Adlago Posted July 28, 2016 Posted July 28, 2016 Step by Step Add in your htaccess file: FileETag None <IfModule mod_deflate.c> <filesMatch ".(css|js|x?html?|php)$"> SetOutputFilter DEFLATE </filesMatch> </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "now plus 1 week" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 month" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType application/x-shockwave-flash "access plus 1 week" ExpiresByType video/x-flv "access plus 1 week" ExpiresByType application/pdf "access plus 1 week" ExpiresByType text/xml "access plus 1 month" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType application/font-woff "access plus 1 month" ExpiresByType application/x-font-woff "access plus 1 month" ExpiresByType font/woff "access plus 1 month" ExpiresByType application/font-woff2 "access plus 1 year" ExpiresByType application/vnd.ms-fontobject "access plus 1 month" ExpiresByType application/x-font-ttf "access plus 1 month" ExpiresByType font/opentype "access plus 1 month" ExpiresByType image/svg+xml "access plus 1 month" </IfModule>
marklcfc Posted July 28, 2016 Author Posted July 28, 2016 I will add that part now, I had to move the js back to head for now though as it messed my custom pages up Is that the .htaccess file in home or forums folder @Adlago?
Adlago Posted July 28, 2016 Posted July 28, 2016 in home In your site has too many external resources and many redirects. This basically makes slow your site. See this test here http://www.webpagetest.org/result/160728_KS_237E/1/details/
Recommended Posts
Archived
This topic is now archived and is closed to further replies.