Time and again, I find myself looking for pagespeed filters. Of course also for their definition and an easy way to go on. So here we are again – this time with a list. this list works on current WordPress and Avada theme.
ModPagespeedRewriteLevel CoreFilters
ModPagespeedEnableFilters trim_urls
ModPagespeedEnableFilters rewrite_css,sprite_images
ModPagespeedEnableFilters rewrite_style_attributes,rewrite_css
ModPagespeedEnableFilters remove_comments
ModPagespeedEnableFilters prioritize_critical_css
ModPagespeedEnableFilters insert_dns_prefetch
ModPagespeedEnableFilters move_css_to_head
ModPagespeedEnableFilters move_css_above_scripts
ModPagespeedEnableFilters rewrite_javascript
ModPagespeedEnableFilters inline_import_to_link
ModPagespeedEnableFilters hint_preload_subresources
ModPagespeedEnableFilters flatten_css_imports
ModPagespeedEnableFilters convert_gif_to_png
ModPagespeedEnableFilters convert_jpeg_to_progressive
ModPagespeedEnableFilters convert_jpeg_to_webp
ModPagespeedEnableFilters convert_png_to_jpeg
ModPagespeedEnableFilters convert_to_webp_lossless
ModPagespeedEnableFilters inline_images
ModPagespeedEnableFilters insert_image_dimensions
ModPagespeedEnableFilters recompress_images
ModPagespeedEnableFilters jpeg_subsampling
ModPagespeedEnableFilters resize_images
ModPagespeedEnableFilters resize_rendered_image_dimensions
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters strip_image_color_profile
ModPagespeedEnableFilters strip_image_meta_data
ModPagespeedCssImageInlineMaxBytes 10000
ModPagespeedImageJpegNumProgressiveScans 10
ModPagespeedImageLimitOptimizedPercent 100
ModPagespeedImageLimitResizeAreaPercent 100
ModPagespeedJpegRecompressionQualityForSmallScreens 50
ModPagespeedServeRewrittenWebpUrlsToAnyAgent off
ModPagespeedEnableFilters extend_cache
ModPagespeedEnableFilters dedup_inlined_images
ModPagespeedEnableFilters combine_heads
ModPagespeedEnableFilters combine_javascript
ModPagespeedEnableFilters combine_css
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters make_google_analytics_async
ModPagespeedEnableFilters make_show_ads_async
ModPagespeedEnableFilters inline_javascript
ModPagespeedEnableFilters inline_css
ModPagespeedEnableFilters resize_mobile_images
#ModPagespeedEnableFilters defer_javascript
And yes, before you ask, some filters are already included in CoreFilters. Additionally there are filters set in CoreFilters, which are not shown here. After all this does not matter, since it is simply an aggressive filter set.
Except for “defer_javascript”, since this filter is in comments. This has several reasons:
- Defer Javascript disables JS for initial page loads. So especially slideshows and in general sliders suffer or are basically disabled.
- Defer Javascript is the major reason to block page render especially on allround themes like Avada or Divi themes.
- This option is very useful and we will elaborate on advanced techniques in later articles.
- This option can be deployed for subpages (eg. without sliders), where defer Javascript drastically improves page render and completion.
So it is yours – copy the list, use it, comment part of and use it for testing.
Until next time.
Leave A Comment