Skip to content

Commit 27df49d

Browse files
Update loadcss example to use the latest syntax
1 parent dd593c2 commit 27df49d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ A simple example using loadcss-rails looks like:
7474
<script>
7575
loadCSS("<%= stylesheet_path('application') %>");
7676
</script>
77+
<link rel="preload" href="<%= stylesheet_path('application') %>" as="style" onload="this.rel='stylesheet'">
7778
<noscript>
78-
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
79+
<link rel="stylesheet" href="<%= stylesheet_path('application') %>">
7980
</noscript>
8081
```
8182

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module CriticalPathCSS
22
module Rails
3-
VERSION = '0.2.2'
3+
VERSION = '0.2.3'
44
PENTHOUSE_VERSION = '0.3.4'
55
end
66
end

0 commit comments

Comments
 (0)