@@ -640,17 +640,19 @@ assets.
640
640
641
641
#### options
642
642
643
- | option | type | default | required | details |
644
- | -------------- | --------- | --------- | -------- | -------------------------------------------------------------------------------------------- |
645
- | value | ` string ` | | &check ; | Relative or absolute URL to the JavaScript asset |
646
- | prefix | ` boolean ` | ` false ` | | Whether the pathname defined on the constructor should be prepend, if relative, to the value |
647
- | type | ` string ` | ` default ` | | What type of JavaScript (eg. esm, default, cjs) |
648
- | referrerpolicy | ` string ` | | | Correlates to the same attribute on a HTML ` <script> ` element |
649
- | crossorigin | ` string ` | | | Correlates to the same attribute on a HTML ` <script> ` element |
650
- | integrity | ` string ` | | | Correlates to the same attribute on a HTML ` <script> ` element |
651
- | nomodule | ` boolean ` | ` false ` | | Correlates to the same attribute on a HTML ` <script> ` element |
652
- | async | ` boolean ` | ` false ` | | Correlates to the same attribute on a HTML ` <script> ` element |
653
- | defer | ` boolean ` | ` false ` | | Correlates to the same attribute on a HTML ` <script> ` element |
643
+ | option | type | default | required | details |
644
+ | -------------- | ----------------------------------------------------- | -------------------- | -------- | -------------------------------------------------------------------------------------------- |
645
+ | value | ` string ` | | &check ; | Relative or absolute URL to the JavaScript asset |
646
+ | strategy | ` "beforeInteractive" \| "afterInteractive" \| "lazy" ` | ` "afterInteractive" ` | | Specify how the JavaScript should be loaded |
647
+ | scope | ` "content" \| "fallback" \| "all" ` | ` "all" ` | | Specify what routes the JavaScript should apply to |
648
+ | prefix | ` boolean ` | ` false ` | | Whether the pathname defined on the constructor should be prepend, if relative, to the value |
649
+ | type | ` string ` | ` default ` | | What type of JavaScript (eg. esm, default, cjs) |
650
+ | referrerpolicy | ` string ` | | | Correlates to the same attribute on a HTML ` <script> ` element |
651
+ | crossorigin | ` string ` | | | Correlates to the same attribute on a HTML ` <script> ` element |
652
+ | integrity | ` string ` | | | Correlates to the same attribute on a HTML ` <script> ` element |
653
+ | nomodule | ` boolean ` | ` false ` | | Correlates to the same attribute on a HTML ` <script> ` element |
654
+ | async | ` boolean ` | ` false ` | | Correlates to the same attribute on a HTML ` <script> ` element |
655
+ | defer | ` boolean ` | ` false ` | | Correlates to the same attribute on a HTML ` <script> ` element |
654
656
655
657
##### value
656
658
@@ -925,18 +927,20 @@ assets.
925
927
926
928
#### options
927
929
928
- | option | type | default | required | details |
929
- | ----------- | --------- | ------------ | -------- | -------------------------------------------------------------------------------------------- |
930
- | value | ` string ` | | &check ; | Relative or absolute URL to the CSS asset |
931
- | prefix | ` boolean ` | ` false ` | | Whether the pathname defined on the constructor should be prepend, if relative, to the value |
932
- | crossorigin | ` string ` | | | Correlates to the same attribute on a HTML ` <link> ` element |
933
- | disabled | ` boolean ` | ` false ` | | Correlates to the same attribute on a HTML ` <link> ` element |
934
- | hreflang | ` string ` | | | Correlates to the same attribute on a HTML ` <link> ` element |
935
- | title | ` string ` | | | Correlates to the same attribute on a HTML ` <link> ` element |
936
- | media | ` string ` | | | Correlates to the same attribute on a HTML ` <link> ` element |
937
- | type | ` string ` | ` text/css ` | | Correlates to the same attribute on a HTML ` <link> ` element |
938
- | rel | ` string ` | ` stylesheet ` | | Correlates to the same attribute on a HTML ` <link> ` element |
939
- | as | ` string ` | | | Correlates to the same attribute on a HTML ` <link> ` element |
930
+ | option | type | default | required | details |
931
+ | ----------- | --------------------------------------------------------------------- | --------------------- | -------- | -------------------------------------------------------------------------------------------- |
932
+ | value | ` string ` | | &check ; | Relative or absolute URL to the CSS asset |
933
+ | strategy | ` "beforeInteractive" \| "afterInteractive" \| "lazy" \| "shadow-dom" ` | ` "beforeInteractive" ` | | Specify how the CSS should be loaded |
934
+ | scope | ` "content" \| "fallback" \| "all" ` | ` "all" ` | | Specify what routes the CSS should apply to |
935
+ | prefix | ` boolean ` | ` false ` | | Whether the pathname defined on the constructor should be prepend, if relative, to the value |
936
+ | crossorigin | ` string ` | | | Correlates to the same attribute on a HTML ` <link> ` element |
937
+ | disabled | ` boolean ` | ` false ` | | Correlates to the same attribute on a HTML ` <link> ` element |
938
+ | hreflang | ` string ` | | | Correlates to the same attribute on a HTML ` <link> ` element |
939
+ | title | ` string ` | | | Correlates to the same attribute on a HTML ` <link> ` element |
940
+ | media | ` string ` | | | Correlates to the same attribute on a HTML ` <link> ` element |
941
+ | type | ` string ` | ` text/css ` | | Correlates to the same attribute on a HTML ` <link> ` element |
942
+ | rel | ` string ` | ` stylesheet ` | | Correlates to the same attribute on a HTML ` <link> ` element |
943
+ | as | ` string ` | | | Correlates to the same attribute on a HTML ` <link> ` element |
940
944
941
945
##### value
942
946
0 commit comments