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 fb01490

Browse files
Update Example Based on loadCSS Best Practice
1 parent a6a4839 commit fb01490

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 によって変換されたページ (->オリジナル) /