Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 11, 201410 yr Hi, Following Dmacleo's advice, I installed ngx_pagespeed. Now I am stuck with how to configure it... There are too many options! http://ngxpagespeed.com/ngx_pagespeed_example/ Any suggestions of the options that will improve IPB load time and won't generate any kind of issue? Thanks, Gabriel.
July 11, 201410 yr Author After playing with this for a couple of hours, here is my current configuration: pagespeed EnableFilters defer_javascript,collapse_whitespace,combine_css,combine_javascript,elide_attributes,extend_cache,remove_comments,insert_dns_prefetch,lazyload_images,inline_javascript,local_storage_cache,outline_css,outline_javascript,prioritize_critical_css,rewrite_css,rewrite_javascript,rewrite_style_attributes,trim_urls; The option that gives the best result is defer_javascript. Especially on our forums, where we have several advertising banners running, this made the page load first, and then the banners. Fantastic results. However, this option generates a conflict with the >Lazyloader hook, and the images are shown as broken The solution was very easy: I disabled this hook and enabled the integrated lazy loader (lazyload_images). Additional comments and suggestions are more than welcome.
July 11, 201410 yr Here you go, my recommendations and advice; http://community.invisionpower.com/topic/397051-pagespeed-web-server-module/
July 11, 201410 yr Author Had to disable defer_javascript today... A few users complaining that JavaScript-based features were not working for them (but working just fine for me).
July 12, 201410 yr Author Sorry, I haven't see that Kirito is already managing a topic that has exactly what I was looking for... Therefore I am moving the discussion there: http://community.invisionpower.com/topic/397051-pagespeed-web-server-module/ Admin/moderators can even delete this topic if they want. Thanks.
April 30, 20204 yr On 7/11/2014 at 4:58 AM, Gabriel Torres said: prioritize_critical_css Are you still using this feature? Does it break IPS? Does it solve CSS render blocking?
April 30, 20204 yr I don't use that setting anymore. Causes too many reflow issues and is highly inconsistent. ymmv though.
April 30, 20204 yr 39 minutes ago, Makoto said: I don't use that setting anymore. Causes too many reflow issues and is highly inconsistent. ymmv though. Do you have an updated full config you'd be willing to post?
May 1, 20204 yr Author @sobrenome I have this module for nginx disabled, I don't remember exactly why I had disabled it, it's been six years. I have only the PHP built-in opcode cache enabled at the moment.
May 2, 20204 yr On 5/1/2020 at 1:39 PM, Gabriel Torres said: @sobrenome I have this module for nginx disabled, I don't remember exactly why I had disabled it, it's been six years. I have only the PHP built-in opcode cache enabled at the moment. I really would like to test prioritize_critical_css, but I am afraid that on long term it could hurt TTFB considering lots of on the fly optimizations.
May 4, 20204 yr Yeah it doesn't really work well with IPS at the moment, and the mod_pagespeed project hasn't seen development in quite a while now. I can post the configuration I currently use later though I don't think its changed too much. I've mainly just disabled image filters as I use Cloudflare now and it takes care of that for me.