Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a9c6828

Browse files
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /