The Simplest Way to Load CSS Asynchronously via filament group
This post is about seven months old, but I hadn’t seen this trick before. I didn’t even need an explanation (though theirs is great). Just reading the markup dawned on me the elegance of this trick to loading a CSS stylesheet async.
<link rel="stylesheet" href="/path/to/my.css" media="print" onload="this.media='all'">
I love little tricks in HTML like this that would otherwise require who knows how many lines of JavaScript.