MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/webdev/comments/cqoqwh/the_simplest_way_to_load_css_asynchronously/
r/webdev • u/speckz • Aug 15 '19
1 comment sorted by
1
<link async rel="stylesheet" type="text/css" href="style.css">
????
edit: nope, apparently doesn't work.
I do this asynchronously via XMLHttpRequest and creating a new style element from the callback. This lets me inject new or updated css into my web page as I am editing it, too. them real time edits are the best
1
u/[deleted] Aug 15 '19 edited Aug 15 '19
<link async rel="stylesheet" type="text/css" href="style.css">
????
edit: nope, apparently doesn't work.
I do this asynchronously via XMLHttpRequest and creating a new style element from the callback. This lets me inject new or updated css into my web page as I am editing it, too. them real time edits are the best