-
-
Notifications
You must be signed in to change notification settings - Fork 387
Open
Description
Hello 👋
Just curious if there's a "simple" way to get preload link tags for CSS only and not both JS and CSS tags?
Currently I'm using this approach:
const cssLinkTags = extractor
.getLinkTags()
.split('\n')
.filter(tag => tag.includes('as="style"'))
.join('');
But it's not as nice as just using getLinkTags() for example - the problem with getLinkTags is it gives preload links for JS and CSS.
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels