Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
switch order of inline js and css to avoid cascade issues if the inli…
Browse files Browse the repository at this point in the history
…ne css came after the full css
  • Loading branch information
scottjehl committed Sep 15, 2014
1 parent 3f1b8ee commit d483b49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ Here's an example configuration for the head of a page. It uses SSI to detect co
...
<meta name="fullcss" content="/path/to/full.css">
<meta name="fulljs" content="/path/to/enhancements.js">
<script>
<!--#include virtual="/path/to/enhance.js" -->
</script>
<!--#if expr="$HTTP_COOKIE=/fullcss\=true/" -->
<link rel="stylesheet" href="/path/to/full.css">
<!--#else -->
<style>
/* critical CSS styles for this template go here... */
</style>
<script>
<!--#include virtual="/path/to/enhance.js" -->
</script>
<noscript><link rel="stylesheet" href="/path/to/full.css"></noscript>
<!--#endif -->
...
Expand Down

0 comments on commit d483b49

Please sign in to comment.