Cookie CSS file is blocking page rendering
-
Hi,
In these months, I have worked hard to improve the performance of my website. I am now in the final phase of my work, and I have noticed that the CSS file of your plugin is blocking the page rendering.1 externally-referenced CSS file is blocking page rendering. By default, references to external CSS files will block the page from rendering while they are fetched and executed. Sometimes these files _should_ block rendering, but can be inlined to avoid additional round-trips while the page is waiting to render. Sometimes, such as with stylesheets that are only used for loading custom fonts, inline or async CSS can greatly improve perceived performance: /wp-content/plugins/gdpr-cookie-compliance/dist/styles/gdpr-main-nf.css?ver=4.15.2
Do you think it’s possible to do something to mitigate this issue? I thought that we could have two separate styles. The first one is included in the HTML file and is the style for the cookie banner. The second one is placed in a stylesheet and is the style for the cookie settings screen, loading it asynchronously. Honestly, I don’t know if this is the best or final solution, but it’s what I would do. Obviously, you are the developer of the plugin, so you will know best what to do. Thank you for your assistance and dedication you put into the development of your plugin!The page I need help with: [log in to see the link]
- The topic ‘Cookie CSS file is blocking page rendering’ is closed to new replies.