• Resolved sanderrrrr

    (@sanderrrrr)


    Hello,

    I was excited to see the changelog a few months ago about putting it all into one request. However, when I do a simply Chrome Inspect I see there are 4 fonts loaded already.
    In fact it seems 3 times the same font is loaded (webandbrand.woff2) and then once more an icon (icons-close.woff2)

    Is this really necessary? I am sure this can be limited to one; and would it not be better to change that icon to one sprite image or allow the load of a font thats already present (usually fontawesome)

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Albert Peschar

    (@kiboit)

    Hi @sanderrrrr,

    It is the sidebar (the widget on the side of the screen) that is loaded in one request. When you move your mouse on the page, the widgets that are shown when you mouse over the sidebar are preloaded. This should cause 3 additional requests.

    Testing page: https://peschar.net/files/20200224_sidebar.php

    Your site most likely has separate widgets as well, that are loading the font two additional times. If you share the URL to your site, I could verify that.

    I don’t believe icons-close.woff2 is part of our system. Can you give me the full URL to the icon that you see in Chrome DevTools?

    Do you have caching disabled in DevTools? Because the other font webandbrand.woff2 should be cached and thus really only loaded once.

    It is true that this font could be replaced by inline SVGs and that would be better, but I don’t believe this is a high priority for WebwinkelKeur at the moment.

    –Albert

    Thread Starter sanderrrrr

    (@sanderrrrr)

    Hello Albert,

    thanks for the follow-up and looking into this.
    On our website we also have the footer acivated; and you are correct that on that specific page there is another showcase of the reviews-bar.

    I checked on a different page with the sidebar + footer and I am seeing 3 times the webandbrand.woff2 loaded. On the test side you provided it also loads twice.

    I believe the icon-close.woff2 is from a different plugin, my apologies.

    Plugin Author Albert Peschar

    (@kiboit)

    Hi @sanderrrrr,

    I’ve checked with Chrome (I used Firefox before) and indeed the font shows up multiple times:

    But, as you can tell, only the first load is in black font. The others are greyed out and marked with (memory cache) or (disk cache) in the size column– meaning they are loaded from RAM (and not downloaded again). So this doesn’t actually cause additional requests.

    I’ll look into how much work it is to get rid of the webandbrand.woff2 download entirely, because it is a good suggestion.

    –Albert

    • This reply was modified 4 years, 3 months ago by Albert Peschar. Reason: Replace I tags with EM tags
    Thread Starter sanderrrrr

    (@sanderrrrr)

    Great Albert, thanks for looking into this (Y).

    Plugin Author Albert Peschar

    (@kiboit)

    Hi @sanderrrrr,

    We’ve removed the additional request to webandbrand.woff2 now. ?? The sidebar should now trigger only 1 request on initial load, and 2 additional requests to preload the tooltips when you move your mouse.

    –Albert

    Thread Starter sanderrrrr

    (@sanderrrrr)

    wow you don’t mess around. That was quick!
    This requires an update or is done on your end?

    Plugin Author Albert Peschar

    (@kiboit)

    Hi @sanderrrrr,

    It doesn’t require any updates, it’s on our side. ??

    Should it not work on your browser yet, try clearing your cache.

    –Albert

    Thread Starter sanderrrrr

    (@sanderrrrr)

    Thanks Albert
    Seems to work already on our side as well. ??

    Thread Starter sanderrrrr

    (@sanderrrrr)

    Hello Albert,

    during a recent GTmetrix speed test it seems that the sidebar is still causing some issues. It has a 5.41 seconds (!) loading time, while blocking some other resources.
    Is there something we can do about this?

    Some more details below:

    
    cache-control	
    public, max-age=315360000
    cf-cache-status	
    MISS
    cf-ray	
    6092733eba86dc4b-LHR
    cf-request-id	
    074f665b330000dc4b9e22b000000001
    content-encoding	
    br
    content-security-policy	
    script-src 'nonce-CG27zeBCnE' 'unsafe-eval' blob: https://www.googletagmanager.com https://www.google-analytics.com https://stats.g.doubleclick.net https://static.hotjar.com https://connect.facebook.net https://platform.twitter.com https://analytics.twitter.com https://static.ads-twitter.com 'sha256-AGVTnIINrVN/BoNjFLhbLgWrUVi7ON1md2PgJQZsN/c=' 'sha256-DNRNWVsQm5kmNeKcLedI4PmXRuLw+HQnXgb1AcZvbeg=' 'sha256-X/iQA22c1VlfePW6lblf6FY89f1w836RMeCHFMpRuZ8='
    content-type	
    text/javascript; charset=UTF-8
    date	
    Tue, 29 Dec 2020 09:21:23 GMT
    expect-ct	
    max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    expires	
    Fri, 27 Dec 2030 09:20:37 GMT
    last-modified	
    Tue, 29 Dec 2020 09:20:37 GMT
    nel	
    {"report_to":"cf-nel","max_age":604800}
    report-to	
    {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=BW4%2Bv5gFQCnHT6mVZVaMWTD2q64Zb%2FIDbR6hzTTd%2Bq3PdyTdC7qog3VkLRKZacMZLQ1DUbedwuKSJ5%2B0qMNBiqXQrl772sIALqt2%2B0%2F4IZmfYbQTZpsJpycNAw%3D%3D"}],"group":"cf-nel","max_age":604800}
    server	
    cloudflare
    set-cookie	
    __cfduid=d0305e24c23f9a7131dc2239826ceef141609233679; expires=Thu, 28-Jan-21 09:21:19 GMT; path=/; domain=.webwinkelkeur.nl; HttpOnly; SameSite=Lax
    status	
    200
    vary	
    Accept-Encoding
    x-cache	
    HIT
    x-robots-tag	
    noindex
    
    :authority	
    dashboard.webwinkelkeur.nl
    :method	
    GET
    :path	
    /sidebar.js?id=1202407&c=2682056
    :scheme	
    https
    accept	
    */*
    accept-encoding	
    gzip, deflate, br
    accept-language	
    en-US,en;q=0.9
    referer	
    https://www.hardwarewalletonline.nl/
    sec-fetch-dest	
    script
    sec-fetch-mode	
    no-cors
    sec-fetch-site	
    cross-site
    user-agent	
    Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36
    
    • This reply was modified 4 years, 2 months ago by Yui.
    • This reply was modified 4 years, 2 months ago by Yui. Reason: please use CODE button for proper formatting
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘5 fonts are loaded’ is closed to new replies.