Adik Posted July 8, 2017 Share Posted July 8, 2017 Hello guys, PS has useful CCC option to minify html. How can it be restored to TB? On the PS test store I have nice results on Google PageSpeed: 96 / 95. Same theme installed in TB gets lower results: 69 / 84. Link to comment Share on other sites More sharing options...
Fathira Posted July 8, 2017 Share Posted July 8, 2017 Nice questions anyone know please Share Link to comment Share on other sites More sharing options...
Adik Posted July 8, 2017 Author Share Posted July 8, 2017 This same VPS server and theme: PS: Performance grade A 91 Load time 769 ms Faster than 93 % of tested sites Page size 498.3 kB TB: Performance grade B 81 Load time 2.73 s Faster than 57 % of tested sites Page size 666.7 kB Unfortunately I noticed that the shop on TB got weaker results, I also checked on gtmetrix. Is it possible to enable minify html? Link to comment Share on other sites More sharing options...
Adik Posted July 8, 2017 Author Share Posted July 8, 2017 Thanks for sharing this. Here is two reports from Lighthouse plugin, still same VPS server and theme: PS 1.6.0.14 TB 1.0.1 Link to comment Share on other sites More sharing options...
Adik Posted July 8, 2017 Author Share Posted July 8, 2017 BTW. Do you recommend using the pagespeed mod with nginx? I noticed one issue after enable this mod - no images from Catalog->Edit Products->Images. :( Report this as a bug? PS SEO Booster Ultimate from @nemo displays images correctly Link to comment Share on other sites More sharing options...
lesley Posted July 8, 2017 Share Posted July 8, 2017 Google is actually migrating from the Pagespeed framework to the Lighthouse framework to measure performance. If you notice they have been heavily funding Lighthouse and now with Chrome 60 it is going to be included by default. I have already started trying to optimize for Lighthouse, the last theme update added a lot of accessibility options and some speed improvements. In the future we are going to add even more, since we are trying to design thirty bees for the future, not the past. That is also a reason for removing the minify html. It speeds up the download time of the html, there is no doubt in that. But it slows down the processing time of the server. So you might save .2 seconds on download time and trade that for .5 seconds of processing time. It would make your site .3 seconds slower using it. Link to comment Share on other sites More sharing options...
Fathira Posted July 9, 2017 Share Posted July 9, 2017 My site gtmetrix page speed good green A 100 yslow green A90 but Google page speed inslite orenge 67 I can improve Google page speed My server apache nigex (fastcomet rocket booster plans with cdn cloud flare) My cache driver memcached server supported proxy varnish cache. This server not provid Mode page speed Link to comment Share on other sites More sharing options...
Traumflug Posted July 9, 2017 Share Posted July 9, 2017 I hope I step on no toes with this. If something is too slow, adding even more software, well, tends to slow things down even more. Simply because more software means more CPU cycles burnt. That's a simple logic, just not very popular. To get things faster, one has to remove something. For example, CSS and JS files aren't dynamic, so they can be minified at installation time. Doing this for every page request from scratch is a bit ... uhm. To get this minification, one can simply run such a minifier over every file existing in the installation. Another one is to join files. Serving two 5kB files is slower than serving one 10 kB file. PS 1.7 did something in this direction in its default theme. The number of files was simply reduced at theme build time. Third one coming to mind is to compress files in advance. Letting Apache do this compression means each file gets compressed for each page request, so the very same task get repeated thousand of times every day. Nice plan for wasting processing resources. Apache can be instructed to serve files as compressed content without actually compressing them. That means, files on disk have to be already compressed, which is achievable easily. Result: compressed once, served often, less CPU load, improved performance. I'm pretty sure your patches are welcome. For myself, I'm currently covered with more crucial tasks. Link to comment Share on other sites More sharing options...
alwayspaws Posted July 9, 2017 Share Posted July 9, 2017 @Traumflug said in minify html option: Apache can be instructed to serve files as compressed content without actually compressing them. That means, files on disk have to be already compressed, which is achievable easily. Result: compressed once, served often, less CPU load, improved performance. Which compression are we discussing? images or a whole webpage or what, please? I hope I step on no toes with this. When did that ever stop you? LOL! Link to comment Share on other sites More sharing options...
lesley Posted July 9, 2017 Share Posted July 9, 2017 @Traumflug Actually with http/2 becoming prevalent the methodologies are changing. Here is a good article on resource handling, https://medium.com/@asyncmax/the-right-way-to-bundle-your-assets-for-faster-sites-over-http-2-437c37efe3ff @alwayspaws Only text based files can use server side compression, so css, js, html. Link to comment Share on other sites More sharing options...
alwayspaws Posted July 9, 2017 Share Posted July 9, 2017 @lesley how do I dig through to find all those or is there a thirty bees setting to make them compressed? Thanks! Link to comment Share on other sites More sharing options...
lesley Posted July 9, 2017 Share Posted July 9, 2017 It is a server setting, likely it is already switch on, it is unusual for it to not be. Link to comment Share on other sites More sharing options...
alwayspaws Posted July 9, 2017 Share Posted July 9, 2017 So I'd better leave well enough alone, but several hosting people have worked on and restored and restored over again, my site and test site, so how can I be sure, please? Link to comment Share on other sites More sharing options...
lesley Posted July 9, 2017 Share Posted July 9, 2017 Run your site through something like GT Metrix and see if it picks up on any compression errors for resources that are on your site. Likely it will flag things like Google analytics and Facebook, but it should not flag any of the files you host. Link to comment Share on other sites More sharing options...
alwayspaws Posted July 9, 2017 Share Posted July 9, 2017 Thank you, I'll try that. Never heard of GT Metrix until this discussion. Link to comment Share on other sites More sharing options...
vzex Posted July 9, 2017 Share Posted July 9, 2017 Whatever is happening in the background makes this thing fly now even with all the molasses no cache etc on! ;) Can't imagine when I turn it all off! Link to comment Share on other sites More sharing options...
alwayspaws Posted July 9, 2017 Share Posted July 9, 2017 @lesley @mdekker My results are horrifying! https://gtmetrix.com/reports/www.alwayspaws.com/kpgInejV and https://tools.pingdom.com/#!/b5qaMe/https://www.alwayspaws.com/ Link to comment Share on other sites More sharing options...
alwayspaws Posted July 9, 2017 Share Posted July 9, 2017 @vzex said in minify html option: Whatever is happening in the background makes this thing fly now even with all the molasses no cache etc on! ;) Can't imagine when I turn it all off! Your site is very fast? Great! Link to comment Share on other sites More sharing options...
vzex Posted July 9, 2017 Share Posted July 9, 2017 @alwayspaws Everything, front and back. Go do a test install of prestashop and you will be reminded of the changes! :) Of course I don't have 10,000 items either! Link to comment Share on other sites More sharing options...
alwayspaws Posted July 9, 2017 Share Posted July 9, 2017 I only have 255 products. My site has a rating of a "D". I'm getting offline before I get even more upset! It isn't a thirty bees problem, that's for sure! Link to comment Share on other sites More sharing options...
alwayspaws Posted July 9, 2017 Share Posted July 9, 2017 @lesley said in minify html option: Run your site through something like GT Metrix and see if it picks up on any compression errors for resources that are on your site. Likely it will flag things like Google analytics and Facebook, but it should not flag any of the files you host. I just ran my site through that and pingdom and the results freaked me out. I can't even look up whatever it is you suggested. Link to comment Share on other sites More sharing options...
lesley Posted July 9, 2017 Share Posted July 9, 2017 It looks like the big thing you need to make sure of is that mod_expires is installed on your server. Link to comment Share on other sites More sharing options...
lesley Posted July 9, 2017 Share Posted July 9, 2017 And also that all the caching options are turned on in your shop. Link to comment Share on other sites More sharing options...
alwayspaws Posted July 9, 2017 Share Posted July 9, 2017 @lesley said in minify html option: It looks like the big thing you need to make sure of is that mod_expires is installed on your server. I'll look for that, not that I know how. I'll just go to admin and search for it. And also that all the caching options are turned on in your shop. I had just asked what settings to use for Cache and Full Page cache. What are they, please? Link to comment Share on other sites More sharing options...
lesley Posted July 9, 2017 Share Posted July 9, 2017 Mod_expires is not something in thirty bees, it is in your server setup. I honestly do not know with your server setup what are best, it depends on the server software. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now