Skip to content

Commit b398a21

Browse files
authored
Merge pull request #60 from podium-lib/use-shadow-dom
docs: document useShadowDOM
2 parents 7bde2df + 4fbe06b commit b398a21

File tree

4 files changed

+102
-61
lines changed

4 files changed

+102
-61
lines changed

blog/2019-05-20-new-documentation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ tags: [hello, podium]
88
Welcome to our blog. Our documentation site has just gotten an refreshing update
99
which also give us a blog.
1010

11+
<!--truncate-->
12+
1113
This space will be used to document version changes and give insight in tips and
1214
tricks not really belonging in the documentation itself.

docs/api/layout.md

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -640,17 +640,19 @@ assets.
640640

641641
#### options
642642

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 |
654656

655657
##### value
656658

@@ -925,18 +927,20 @@ assets.
925927

926928
#### options
927929

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 |
940944

941945
##### value
942946

0 commit comments

Comments
 (0)