Sorry for the lengthy title! Earlier today I was wondering this:
An example would be:
<link rel="stylesheet" media="only screen and (min-width: 1024px)" href="foo.css" />
— Jon Kuperman (@jkup) April 18, 2016
So I created a Github Repo with a reduced test case and ran it on all the major browsers.
<title>Media queries in link elements</title>
<link rel="stylesheet" href="foo.css" />
<link rel="stylesheet" media="only screen and (max-width: 500px)" href="bar.css" />
<h1>Check the console</h1>
<h2>How many stylesheets were downloaded?</h2>
All across the board, it looks like browsers will not only download the bar.css file but will block page render just like normal until it’s downloaded. It seems like it might be dangerous to mess around with the rendering process but it would be a cool perf win if browsers could figure out how to skip unnecessary downloads (or at least download them asynchronously!).