We have activated the google pagespeed module in apache we server you can use .htaccess code to speed up the loading of your webiste.For example you can use following .htaccess code to decrease l oad time of website.

<IfModule pagespeed_module>
  ModPagespeed on
  ModPagespeedRewriteLevel CoreFilters
  ModPagespeedEnableFilters add_head,remove_quotes,combine_javascript,rewrite_images,insert_dns_prefetch,defer_javascript
  ModPagespeedEnableFilters rewrite_css,fallback_rewrite_css_urls
  ModPagespeedEnableFilters sprite_images,collapse_whitespace,dedup_inlined_images,inline_preview_images,resize_mobile_images,rewrite_javascript,responsive_images,resize_images,convert_jpeg_to_progressive,prioritize_critical_css,trim_urls
  ModPagespeedEnableFilters convert_gif_to_png,recompress_png,convert_png_to_jpeg,convert_jpeg_to_progressive,recompress_jpeg,convert_jpeg_to_webp,convert_to_webp_lossless,convert_to_webp_animated,recompress_webp

  ModPagespeedEnableFilters lazyload_images
  ModpagespeedLazyloadImagesAfterOnload off
  ModpagespeedCriticalImagesBeaconEnabled false
  ModpagespeedLazyloadImagesBlankUrl "https://www.gstatic.com/psa/static/1.gif"
  ModPagespeedEnableFilters inline_google_font_css
  ModPagespeedGoogleFontCssInlineMaxBytes 1024
  ModPagespeedCssInlineMaxBytes 1024

  ModPagespeedEnableFilters local_storage_cache
</IfModule>

To deactivate Googlepage speed please use following code in .htaccess file

 

<IfModule pagespeed_module>
     ModPagespeed off
 </IfModule>

 

For more information you can visit https://www.modpagespeed.com/doc/configuration



Tuesday, March 31, 2020

« Back