Skip to content

Commit 0b4f2d5

Browse files
authored
Update components.py
1 parent 8710838 commit 0b4f2d5

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎src/reactpy_django/components.py‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,6 @@ def _view_to_iframe(
250250
extra_props = extra_props or {}
251251
extra_props.pop("src", None)
252252

253-
# The iframe loads eagerly by default (the HTML default). An eager iframe is
254-
# a sub-resource that the browser fetches as part of the parent page's
255-
# initial load, so its document is reliably present as soon as the page
256-
# loads. The previous default of `loading="lazy"` deferred the fetch until
257-
# the iframe was scrolled close to the viewport, which made availability
258-
# non-deterministic. If you want that deferred behavior, opt in via
259-
# `extra_props={"loading": "lazy"}`.
260253
return html.iframe(
261254
{
262255
"src": reverse("reactpy:view_to_iframe", args=[dotted_path]) + query_string,

0 commit comments

Comments
 (0)