You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pyhtml/__tags/generated.py
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4116,6 +4116,7 @@ class script(Tag):
4116
4116
4117
4117
* `type`: Type of script to use (defaults to `'text/javascript'`)
4118
4118
* `src`: The location from which to load the script. If present, this will be used rather than the contents of the element.
4119
+
* `defer`: Defers execution of the script until the page has fully loaded.
4119
4120
4120
4121
[View full documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script)
4121
4122
"""
@@ -4124,19 +4125,22 @@ def __init__(
4124
4125
*children: ChildrenType,
4125
4126
type: str|None=None,
4126
4127
src: AttributeType=None,
4128
+
defer: bool|None=None,
4127
4129
**attributes: AttributeType,
4128
4130
) ->None:
4129
4131
"""
4130
4132
Used to embed executable code or data; this is typically used to embed or refer to JavaScript code. The `<script>` element can also be used with other languages, such as [WebGL](https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API)'s GLSL shader programming language and [JSON](/en-US/docs/Glossary/JSON).
4131
4133
4132
4134
* `type`: Type of script to use (defaults to `'text/javascript'`)
4133
4135
* `src`: The location from which to load the script. If present, this will be used rather than the contents of the element.
4136
+
* `defer`: Defers execution of the script until the page has fully loaded.
4134
4137
4135
4138
[View full documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script)
Used to embed executable code or data; this is typically used to embed or refer to JavaScript code. The `<script>` element can also be used with other languages, such as [WebGL](https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API)'s GLSL shader programming language and [JSON](/en-US/docs/Glossary/JSON).
4152
4157
4153
4158
* `type`: Type of script to use (defaults to `'text/javascript'`)
4154
4159
* `src`: The location from which to load the script. If present, this will be used rather than the contents of the element.
4160
+
* `defer`: Defers execution of the script until the page has fully loaded.
4155
4161
4156
4162
[View full documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script)
0 commit comments