Want more timely Centmin Mod News Updates?
Become a Member

PageSpeed This forum's pagespeed.conf

Discussion in 'Web Development & Web Performance' started by eva2000, May 26, 2014.

  1. frm

    frm Member

    34
    4
    8
    Dec 17, 2018
    Ratings:
    +6
    Local Time:
    8:56 PM
    1.15.7
    10.3.11
    I use this conf on 2.1 and it looks good, but I had to turn it off on every other page besides the index (that scores a 99/100 on Google's test because of it) because it'll destroy the editor box (sometimes it appears, and other times it doesn't, but when it does there's no toolbar on the box).

    I don't know if this is the javascript setting or something else. I'll keep playing with it more to see which one can make it work site-wide.

     
  2. rdan

    rdan Premium Member Premium Member

    5,141
    1,282
    113
    May 25, 2014
    Ratings:
    +1,966
    Local Time:
    7:56 PM
    Mainline
    10.2
    Just disable this:
    pagespeed EnableFilters prioritize_critical_css;
    pagespeed EnableFilters defer_javascript;

    Will fix all issues.
     
  3. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:56 PM
    Nginx 1.21.x
    MariaDB 10.x
  4. frm

    frm Member

    34
    4
    8
    Dec 17, 2018
    Ratings:
    +6
    Local Time:
    8:56 PM
    1.15.7
    10.3.11
    Pagespeed didn't drop from 99/100 on the homepage, but went from 70s to to 99/100 on threads now; and, the functionality of posting still works. Thanks!
     
  5. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:56 PM
    Nginx 1.21.x
    MariaDB 10.x
    yeah those 2 pagespeed filters are tricky to get right :)
     
  6. Mak Adang

    Mak Adang Member

    62
    20
    8
    Jan 4, 2015
    Ratings:
    +23
    Local Time:
    6:56 PM
    1.9.0
    10.0.18-MariaDB
    Hi All,

    Is there anyone would like to share the pagespeed.conf for wordpress site?
    I just wonder how ovoid miss configuration with Autoptimize plugin with JS,CSS & HTML configuration also.

    Thank you.
     
  7. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    1:56 PM
    1.9.10
    10.1.11
    Yes, i need the example pagespeed.conf for xenforo 2.1.4 too.

    Someone may share if have the rules please.
     
  8. pamamolf

    pamamolf Premium Member Premium Member

    3,963
    407
    83
    May 31, 2014
    Ratings:
    +788
    Local Time:
    1:56 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    I prefer to let others to that job for me and free :)

    Cloudflare :)

    So i have more power on my server for other tasks.
     
  9. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:56 PM
    Nginx 1.21.x
    MariaDB 10.x
    @Mak Adang @negative as every site's theme/style layout differs, ngx_pagespeed config can differ so proper way is to use instructions outlined at Nginx PageSpeed - Nginx Pagespeed Troubleshooting steps to troubleshoot ngx_pagespeed if you have it enabled for your specific site

    or yes Cloudflare these days almost cancels the need for ngx_pagespeed :)
     
  10. Mak Adang

    Mak Adang Member

    62
    20
    8
    Jan 4, 2015
    Ratings:
    +23
    Local Time:
    6:56 PM
    1.9.0
    10.0.18-MariaDB
    Thanks @eva2000 & @pamamolf
    Already used Cloudflare Enables HTTPS TLS 1.3 Backend Origin Communication too :)
     
  11. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    1:56 PM
    1.9.10
    10.1.11
    Is Cloudflare offers same advantages like ngx_pagespeed?

    For speed and optimizations like ngx_pagespeed ?
     
  12. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:56 PM
    Nginx 1.21.x
    MariaDB 10.x
    yes especially if using Cloudflare Pro and above as it has on the fly webP image conversion just like ngx_pagespeed but better as Cloudflare has 190+ datacenters for their CDN accelerated serving of your files/images.
     
  13. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    1:56 PM
    1.9.10
    10.1.11
    I' m using Pro already and Webp feature is enabled. But is ngx_pagespeed only does the image optimization ? What about css, js or others?
     
  14. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:56 PM
    Nginx 1.21.x
    MariaDB 10.x
  15. pdinh97qng

    pdinh97qng Member

    107
    13
    18
    Jan 24, 2016
    Ratings:
    +34
    Local Time:
    3:56 AM
    :p I have spent time to defer JS, test and defer JS is not for XenForo for now... It breaks the editor, thread_view, and some other function... To make it work, I have to exclude a lot of JS files from pagespeed = back to the beginning, so just keep defer JS disabled is the best way for me.
     
  16. tonmo

    tonmo Member

    50
    1
    8
    Jul 20, 2019
    Ratings:
    +5
    Local Time:
    6:56 AM
    1.17.1
    5.5.5 (10.3.16-MariaDB)
    looks like these are currently disabled (commented out) by default in pagespeed.conf -- correct?
     
  17. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:56 PM
    Nginx 1.21.x
    MariaDB 10.x
    yes by default they are not enabled
     
  18. tonmo

    tonmo Member

    50
    1
    8
    Jul 20, 2019
    Ratings:
    +5
    Local Time:
    6:56 AM
    1.17.1
    5.5.5 (10.3.16-MariaDB)
    I have a problem with the default Sprite reactions not loading properly on XF. I see that this forum uses modified reactions. In order to resolve the issue, I needed to disable the sprite settings:
    Code:
      # sprite_images
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-image-sprite
    pagespeed EnableFilters rewrite_css;
    pagespeed DisableFilters sprite_images;
    
    If there is a way to preserve the images without disabling sprites altogether, let me know, thanks!
     
    Last edited: May 5, 2020
  19. tonmo

    tonmo Member

    50
    1
    8
    Jul 20, 2019
    Ratings:
    +5
    Local Time:
    6:56 AM
    1.17.1
    5.5.5 (10.3.16-MariaDB)
    I followed this advice given problems with the XF thread editor not rendering (Quick Reply). I think I am able to keep prioritize_critical_css enabled (EDIT: no I'm not, see below), but I disabled ForbidAllDisabledFilters. I may have interpreted incorrectly, but I did this based on the following, per Prioritize Critical CSS:
    Quick reply is still rendering, at least.

    EDIT: true, but it brings back a gap issue with navigation tabs, so it's best to follow the advice in the quoted post, unless others can offer solutions:
    upload_2020-5-6_7-31-57.png
     
    Last edited: May 6, 2020
  20. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:56 PM
    Nginx 1.21.x
    MariaDB 10.x
    tried using pagespeed Disallow to just exclude specific css/js ?