Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @0dene,

    Could you indicate which one of these requests is ‘blocking’ the loading of the site? Does this refer to the REST API request (which is only 83 bytes) to the wp-json/complianz/v1/banner endpoint, used to load the banner settings?

    If so, such a request does not block the loading of the page while it is still in progress; but it has to wait for the last script on your site to load before it can complete, after which the banner appears.

    Kind regards, Jarno

    Thread Starter Odene

    (@0dene)

    Banner and the cookie_data are loading really long. In core vitals there is something like Largest Contentful Paint (LCP) the this metric is dramatically impacted by this loading time.

    In other words, that long loading time impacts the page when it fully loads and this is one of the factors for core vitals. This needs to less shorter.

    • This reply was modified 9 months, 2 weeks ago by Odene.
    Thread Starter Odene

    (@0dene)

    The js: https://placowkowo.pl/wp-content/plugins/complianz-gdpr-premium/cookiebanner/js/complianz.min.js?ver=1707489062:0

    Takes 1.3s to load the banner which extends the LCP

    According to Google Speed Insights it takes even longer 4.1s

    https://pagespeed.web.dev/analysis/https-placowkowo-pl/ebktytb5xl?form_factor=mobile

    How can this be improved? Why it takes so long to load? I use the premium version if it makes any difference.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @0dene,

    If your specific concern is the Largest Contentful Paint (LCP) metric on Mobile devices (seeing as this is 0,8s in the Desktop report), this is because the Cookie Banner Message is regarded as the LCP element.

    By adjusting the Cookie Banner’s message size, you can eliminate it as the LCP element and raise the LCP score on mobile devices as well, e.g. shortening the Cookie Banner text, splitting it into two paragraphs to reduce its’ size, manually setting a height for the cookie message with CSS.

    Kind regards, Jarno

    Thread Starter Odene

    (@0dene)

    Thx, the problem was with caching.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Performance issue’ is closed to new replies.