• Resolved fabricelaborie

    (@fabricelaborie)


    using the latest (4.1.0) version of “Social Icons Widget & Block by WPZOOM”,
    I am getting 9 the following warnings in the console:
    <link rel=preload> has an unsupportedtypevalue

    This is the source of one of the errors:

    
    <link rel="preload" as="font"  id='wpzoom-social-icons-font-academicons-ttf-css'  href='https://hejazultra.org/wp-content/plugins/social-icons-widget-by-wpzoom/assets/font/academicons.ttf?v=1.8.6' type='text/css' type="font/ttf" crossorigin />
    

    is there a fix for that ?

    • This topic was modified 3 years, 8 months ago by Yui.
    • This topic was modified 3 years, 8 months ago by Yui. Reason: please use CODE button for code formatting

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

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

    (@wpzoom)

    @fabricelaborie For now you can ignore those warnings as they don’t affect your website.

    There is no solution available yet for this issue.

    This happens because we’re preloading fonts in order to improve the PageSpeed score.

    The “preload” can be disabled from plugin settings, but then new errors will appear in PageSpeed report (Preload key requests):
    https://d.pr/i/QB5vW9

    Tim

    (@turrdpress)

    Thanks for the workaround. We’re going to bypass this error using the instructions you provided, but it’s actually a simple fix which I believe you could incorporate rather quickly. Below is an example of a tag that’s generated by your plugin.

    <link rel=”preload” as=”font” id=’wpzoom-social-icons-font-academicons-woff-css’ href=’https://example.com/wp-content/plugins/social-icons-widget-by-wpzoom/assets/font/academicons.woff?v=1.8.6&#8242; type=’text/css’ type=”font/woff” crossorigin />

    See how there are two type tags. The first one is wrong as it says text/css. The second is correct, keep that one. Problem solved.

    Also, your tags seem to alternate between single and double quotes which isn’t great form, but it’s probably not as problematic as having two type fields.

    I haven’t looked too closely, but the issue is probably in social-icons-widget-by-wpzoom.php line 113 to line 122.

    I’d be happy to provide more assistance if needed.

    Plugin Author WPZOOM

    (@wpzoom)

    @turrdpress Thanks a lot for letting us know about this issue. Somehow we missed the 2 tags problem.

    We’ve just updated the plugin and a fix was included.

    Pavel.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘has an unsupported `type` value’ is closed to new replies.