Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypoScript:includeCSSLibs is not parsed #30

Open
xerc opened this issue May 4, 2020 · 2 comments
Open

TypoScript:includeCSSLibs is not parsed #30

xerc opened this issue May 4, 2020 · 2 comments

Comments

@xerc
Copy link
Contributor

xerc commented May 4, 2020

.. is that on purpose?

@svewap
Copy link
Collaborator

svewap commented May 4, 2020

No, just not implemented. I didn't see the need for it before.

@xerc
Copy link
Contributor Author

xerc commented Jul 30, 2021

might found a use-case to have two files @ https://web.dev/defer-non-critical-css/#optimize
includeCSSLibs; mandatory styles for FCP (in my case only one main.scss with Autoprefixer)
includeCSS; styles for element later in the page which will be loaded via the fake defer trick

search = /(<link) rel="(stylesheet)".+?(href="[^"]+") media="async">/
replace = $1 rel="preload" as="style" onload="this.onload=null;this.rel='$2'" $3><noscript>$1 rel="$1" $2></noscript>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants