a-digital / cookie-consent-banner

Add a configurable cookie consent banner to the website.
MIT License
11 stars 14 forks source link

When turning on preload the css loading tag isn't included in the page. #26

Closed jripmeester closed 4 years ago

jripmeester commented 4 years ago

Hi!

When we turn on the option to preload the css the link tag with preload attribute is loaded. But the actual link tag for loading the css isn't included in the head. Which causes the styling to fail.

I think we missing something but i can't seem to find what...

mark-adigital commented 4 years ago

Hi,

If I'm following you correctly, I think the problem is that you need to generate the Critical CSS for the webpage yourself (which in my experience would include the banner) separately - all the setting in the plugin set the preload attribute on the CSS tag as you've seen.

Hope that helps,

Mark

mark-adigital commented 4 years ago

Closing due lack of further feedback.