Discover Centmin Mod today
Register Now

PageSpeed This forum's pagespeed.conf

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

  1. BobbyWibowo

    BobbyWibowo Active Member

    197
    42
    28
    Jul 30, 2015
    Indonesia
    Ratings:
    +71
    Local Time:
    6:55 PM
    1.17.x
    10.3.x
    What is that test site?

     
  2. eva2000

    eva2000 Administrator Staff Member

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

    ljseals Member

    101
    24
    18
    Dec 20, 2016
    Ratings:
    +46
    Local Time:
    5:55 AM
    Wondering is it normal for pagespeed to miss the first view in Webpagetest.org. My repeated view shows the beacon but the first view does not. Is there a setting that I missed?
     
  4. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:55 PM
    Nginx 1.21.x
    MariaDB 10.x
    That is how ngx_pagespeed works needs a few page reloads to know what to optimise especially if no or little web traffic
     
  5. ljseals

    ljseals Member

    101
    24
    18
    Dec 20, 2016
    Ratings:
    +46
    Local Time:
    5:55 AM
  6. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:55 PM
    Nginx 1.21.x
    MariaDB 10.x
    Update looks like indeed pagespeed might need these settings PageSpeed HTTPS Support

    For CentOS
    Code (Text):
      # https://www.modpagespeed.com/doc/https_support
       pagespeed SslCertDirectory /etc/pki/tls/certs;
       pagespeed SslCertFile /etc/pki/tls/cert.pem;
    

     
  7. Dnyan

    Dnyan Member

    106
    24
    18
    Sep 16, 2017
    Ratings:
    +36
    Local Time:
    5:25 PM
    1.17.8
    10.3.22
    by using pagespeed and settings provided by you.

    i see no improvement in pagespeed.
    the results were same what was before.

    I use xF2 and UIX2, did anything else i need to do.

    i see following suggestion only for improvements

    Eliminate render-blocking JavaScript and CSS in above-the-fold content
    Leverage browser caching
    Reduce server response time

    only this was present before and after changes.

    For Mobile

    Speed
    Fast
    1.1s FCP2s DCL


    Optimization

    Good
    81 / 100


    For Desktop
    Speed

    Unavailable
    Optimization
    Good
    86 / 100


    did testing using
    PageSpeed Insights

    on Test Your Mobile Website Speed and Performance

    both time i get 5 sec as a result.

    if anyone provide more information on this, it would be great help.

    Thank You
     
  8. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:55 PM
    Nginx 1.21.x
    MariaDB 10.x
    Pagespeed auto optimises pages over time so needs a few page reloads for pagespeed to learn how your page is laid out. So if you have alot of traffic, you would see the results quicker. For less traffic sites, you would need a few page reloads.

    Also PageSpeed Insights tool is wrong tool to use. Use Webpagetest.org and Google Lighthouse and pay attention to Speedindex or perceived visual render time and not absolute page speed see WebPerf - PageSpeed - How to use webpagetest.org for page load speed testing. That's where Nginx Pagespeed shines. Example for this forum PageSpeed - WebPerf - community.centminmod.com webpagetest.org log

    Might want to hang out in Web Development & Web Performance for page speed discussions :)
     
  9. Dnyan

    Dnyan Member

    106
    24
    18
    Sep 16, 2017
    Ratings:
    +36
    Local Time:
    5:25 PM
    1.17.8
    10.3.22
    there was improvement seen in loading but theme is distorted little bit with some functionality block.

    as my forum wont have much traffic, will utilize this addon in future.

    Thank You for replying.
     
  10. Dnyan

    Dnyan Member

    106
    24
    18
    Sep 16, 2017
    Ratings:
    +36
    Local Time:
    5:25 PM
    1.17.8
    10.3.22
    what if i make pagespeed on with default settings

    will it perform to optimum level.

    or changing each setting like you config is mandatory to get boost in performance.
     
  11. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:55 PM
    Nginx 1.21.x
    MariaDB 10.x
    You need to tweak pagespeed.conf for your site's theme so out of box defaults will not be 100% for some folks. I'd start your own dedicated thread for your pagespeed tweaking/troubleshooting.

    You'd have to troubleshoot and tweak it yourself following these guides and info outlined below
     
  12. Dnyan

    Dnyan Member

    106
    24
    18
    Sep 16, 2017
    Ratings:
    +36
    Local Time:
    5:25 PM
    1.17.8
    10.3.22
    can you post a updated latest pagespeed config of this forum.

    Thank You
     
  13. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:55 PM
    Nginx 1.21.x
    MariaDB 10.x
    Pretty much is the same just values for memory caching etc and some values for per image optimisations different as i only have 4 cpu threads.

    FYI, community.centminmod.com still using Xenforo 1.5.x
     
  14. pdinh97qng

    pdinh97qng Member

    107
    13
    18
    Jan 24, 2016
    Ratings:
    +34
    Local Time:
    3:55 AM
    @eva2000
    I have my xenforo forum (subdomain.abc.xyz) and wordpress (abc.xyz) (both have pagespeed enable)
    To make both sites look similar I use an integration to connect them so some resources in wordpress was pulled from my xenforo forum. I have a problem that like:
    the images is in forum folder so it has link: subdomain.abe.xyz/logo
    this image only compress when I use: subdomain.abc.xyz/*
    When reaching the site as: abc.xyz* the image using the original.
    I think that the problem is that the url doesn't match: "pagespeed LoadFromFile"
    Is there anyway for me to fix this.
     
  15. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:55 PM
    Nginx 1.21.x
    MariaDB 10.x
    add appropriate pagespeed LoadFromFile match for the host/domain name see 1st post of this thread for examples
    Code (Text):
    pagespeed LoadFromFile "http://community.centminmod.com" "/home/nginx/domains/community.centminmod.com/public";
    pagespeed LoadFromFile "https://community.centminmod.com" "/home/nginx/domains/community.centminmod.com/public";
    
     
  16. pdinh97qng

    pdinh97qng Member

    107
    13
    18
    Jan 24, 2016
    Ratings:
    +34
    Local Time:
    3:55 AM
    I think you misunderstood me.
    I have an image in https://subdomain.abc.xyz/image.png
    this image was use in both subdomain.abc.xyz (forum) and abc.xyz (wordpress)
    the image only compress when I am using the forum, while using wordpress, the image doesn't compress (both site in same server, pagespeed enable for both)
     
  17. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:55 PM
    Nginx 1.21.x
    MariaDB 10.x
    you'd want to have each domain subdomain with their own settings
    Code (Text):
    pagespeed LoadFromFile "http://community.domain.com.com" "/home/nginx/domains/community.domain.com.com/public";
    pagespeed LoadFromFile "https://community.domain.com.com" "/home/nginx/domains/community.domain.com.com/public";
    pagespeed LoadFromFile "http://domain.com.com" "/home/nginx/domains/domain.com.com/public";
    pagespeed LoadFromFile "https://domain.com.com" "/home/nginx/domains/domain.com.com/public";
    
     
  18. eva2000

    eva2000 Administrator Staff Member

    47,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    9:55 PM
    Nginx 1.21.x
    MariaDB 10.x
    also make sure ab.xyz like subdomain.abc.xyz has pagespeed include lines enabled in nginx vhost
    Code (Text):
    # ngx_pagespeed & ngx_pagespeed handler
    include /usr/local/nginx/conf/pagespeed.conf;
    include /usr/local/nginx/conf/pagespeedhandler.conf;
    include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
     
  19. eva2000

    eva2000 Administrator Staff Member

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

    pdinh97qng Member

    107
    13
    18
    Jan 24, 2016
    Ratings:
    +34
    Local Time:
    3:55 AM
    I figure it out!
    Since my images is in forum folder which is sub.abc.xyz! When pulling that images to use on abc.xyz, pagespeed doesn't have permission to rewrite that file cause it doesn't match the url as:
    Code:
    pagespeed LoadFromFile "https://community.domain.com.com" "/home/nginx/domains/community.domain.com.com/public";
    
    Adding authorizing domains in pagespeed.conf solve the problem:
    Code:
    pagespeed Domain http://example.com;