Skip to content

Instantly share code, notes, and snippets.

@AllThingsSmitty
Created July 17, 2015 23:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save AllThingsSmitty/9b3b5a1baf077ffa8625 to your computer and use it in GitHub Desktop.
Save AllThingsSmitty/9b3b5a1baf077ffa8625 to your computer and use it in GitHub Desktop.
How our main CSS file might end up looking with HTTP/2
@import "core.css";
@import "theme.css";
@import "user-theme.css";
@import "small-breakpoint.css" (max-width: 40em);
@import "landscape.css" screen and (orientation: landscape);
@import "print.css" print;
@AllThingsSmitty
Copy link
Author

@import supports media queries but browsers that support HTTP/2 are still loading all stylesheets whether or not the media query calls for it.

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