• Resolved chitrag135

    (@chitrag135)


    How to fix following errors ?

    Avoid an excessive DOM size 857 elements

    Serve static assets with an efficient cache policy

    Ensure text remains visible during webfont load

    Minimize Critical Requests Depth

    Keep request counts low and transfer sizes small
    69 requests ? 1,826 KB

    After autoptimize plug in I still have above errors. How to fix one by one ?

    • This topic was modified 5 years, 9 months ago by chitrag135.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    dom size: use a simpler theme with less visual elements

    static assets cache police; probably due to externally hosted files

    text during webfont load; use font-display:swap. if this regards google fonts, have a look at https://blog.futtta.be/2019/05/24/google-font-display-swap-in-autoptimize/

    critical request depth; simpler theme, less plugins with elements on frontend

    request count; simpler theme, less reliance on external services, …

    nothing specific to Autoptimize really ??

    hope this helps,
    frank

    Thread Starter chitrag135

    (@chitrag135)

    where should I add this code ?

    add_filter(‘autoptimize_filter_extra_gfont_fontstring’,’add_display’);
    function add_display($in) {
    return $in.’&display=swap’;
    }

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    easiest and safest way is using the code snippets plugin.

    (to be clear; this only works if you have the Google Font optimization on AO’s Extra tab active for either ‘aggregate & link’ or ‘aggregate & preload’).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Errors’ is closed to new replies.