• Resolved dylandawg

    (@dylandawg)


    Preloading the font is ok unless it’s not being used. Then chrome clomplain:

    The resource /plugins/rate-my-post/public/css/fonts/ratemypost.ttf was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.

    So this is what worked for me: using to preload only on single post.

    add_action( 'wp', function() {
    if ( ! is_singular() ) {
    add_filter( 'rmp_font_preload', '__return_false' );
    }
    });

    I don’t think this applies to everyone, though.


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.