Skip to content

Commit a9c6828

Browse files
authored
Merge pull request #33 from jcbantuelle/master
Update Example Based on loadCSS Best Practice
2 parents a6a4839 + fb01490 commit a9c6828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ A simple example using [loadcss-rails](https://github.com/michael-misshore/loadc
8787
<script>
8888
loadCSS("<%= stylesheet_path('application') %>");
8989
</script>
90-
<link rel="preload" href="<%= stylesheet_path('application') %>" as="style" onload="this.rel='stylesheet'">
90+
<link rel="preload" href="<%= stylesheet_path('application') %>" as="style" onload="this.onload=null;this.rel='stylesheet'">
9191
<noscript>
9292
<link rel="stylesheet" href="<%= stylesheet_path('application') %>">
9393
</noscript>

0 commit comments

Comments
 (0)