• Resolved ????? ?????

    (@salman1990)


    Hi

    this plugin works perfectly but I am wondering why this plugin preloads its own font using rel=preload. I saw this error in my browser console earlier today. star ratings generally are located at the bottom of pages or below the fold. so there is no reason to preload them.

    Please investigate this issue.

    Thanks

    “The resource https://etemadyadak.com/wp-content/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.”

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Blaz K.

    (@blazk)

    Hi there,

    The font is preloaded for better performance but the plugin doesn’t know whether the font is needed on that page because shortcodes run after the head hook. Therefore, the font is preloaded on all pages. You can disable preload or customize it with the rmp_font_preload filter. To disable you can simply add the following:

    add_filter( 'rmp_font_preload', '__return_false' );

    Best regards,
    Blaz

    • This reply was modified 1 year, 5 months ago by Blaz K..

    Hi Blaz, where should that code go?

    Wondering whether one needs to use all these code snippets in the Pro version?

    Thank you ??

    That code should go to the functions.php

    I just checked it and it works. So no preload anymore.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘why this plugin preload its own font’ is closed to new replies.