You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2019/05/09 13:57:11 UTC

[GitHub] [incubator-pagespeed-mod] conandrum opened a new issue #1881: defer_javascript slows down website?

conandrum opened a new issue #1881: defer_javascript slows down website?
URL: https://github.com/apache/incubator-pagespeed-mod/issues/1881
 
 
   Enabling defer_javascript slows down website. Any insights? 
   Here are some metrics from https://developers.google.com/speed/pagespeed/insights
   
   41%m - 57%d
   defer_javascript ENABLED
   First Contentful Paint 0.4 s
   Speed Index 4.1 s
   Time to Interactive 4.7 s
   First Meaningful Paint 1.0 s
   First CPU Idle 1.5 s
   Max Potential First Input Delay 250 ms
   
   68%m - 94%d
   defer_javascript DISABLED
   First Contentful Paint 0.7 s
   Speed Index 1.4 s
   Time to Interactive 1.8 s
   First Meaningful Paint 1.1 s
   First CPU Idle 1.2 s
   Max Potential First Input Delay 70 ms
   
   My htaccess:
   ## PAGE SPEED OPTIMIZATION
   <IfModule pagespeed_module>
      ModPageSpeed on
      ModPagespeedLoadFromFileCacheTtlMs 31536000000
   
      ### RewriteLevel ###
      # 43-51%m - 73-80%d
      ModPagespeedRewriteLevel CoreFilters
   
      ### STANDARD FILTERS ###
      # 49-52%m - 80-84%d
      ModPagespeedEnableFilters remove_comments,collapse_whitespace,elide_attributes,trim_urls
   
      # EXTERNAL ASSETS - (REQUIRES ModPagespeedFetchHttps enable)
      ModPagespeedDomain http://fonts.googleapis.com
      ModPagespeedGoogleFontCssInlineMaxBytes 20000
      ModPagespeedEnableFilters inline_google_font_css
   
      ### ESSENTIAL FILTERS ###
      # 66-69%m - 95-98%d
      ModPagespeedEnableFilters lazyload_images
      ModPagespeedEnableFilters defer_javascript
   
      # 70-74%m - 97-98%d
      ModPagespeedEnableFilters responsive_images
      ModPagespeedEnableFilters responsive_images_zoom
      ModPagespeedEnableFilters insert_image_dimensions
   
   </IfModule> 
   ## END PAGE SPEED OPTIMIZATION
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services