File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ The veiling process can be used to prevent FOUC at times other than page load. T
65
65
<link rel="stylesheet" href="my-element.css">
66
66
...
67
67
</template>
68
+ <script>
69
+ Polymer('my-element',...);
70
+ </script>
68
71
</polymer>
69
72
70
73
{{site.project_title}} will automatically inline the ` my-element.css ` stylesheet using a ` <style> ` :
@@ -74,8 +77,13 @@ The veiling process can be used to prevent FOUC at times other than page load. T
74
77
<style>.../* Styles from my-element.css */...</style>
75
78
...
76
79
</template>
80
+ <script>
81
+ Polymer('my-element',...);
82
+ </script>
77
83
</polymer>
78
84
85
+ Be careful to put the stylesheet inside the template and the ` <script> ` tag below the template.
86
+
79
87
## Polyfill CSS selectors {#directives}
80
88
81
89
When running under the Shadow DOM polyfill, {{site.project_title}} provides special ` polyfill-* `
You can’t perform that action at this time.
0 commit comments