Difference between Eager-Loading Frames & Lazy-Loading Frames

Hi.
According to the documentation (Turbo Handbook) if I add a src attribute to a frame, the frame is loaded when the tag of the frame appears on the page as the ajax call appends at this time. If I add loading=“lazy” attributes to a frame, the frame is loaded when the frame appears on the page. So is there any difference between them ? Do we only use loading=“lazy” to lazy load a frame which does not have a src attribute ?

Thank you !

The difference is that without “lazy” the request is made when the tag appears in the dom (not necessarily visible).
With “lazy” the request is made when the tag appears on the viewport (becomes visible to the user).

Thanks for clarification.

In doc we may read that “the referenced URL will automatically be loaded as soon as the tag appears on the page” which I miss interpreted as a tag appearing on the viewport of user.

In doc we may read that “the referenced URL will automatically be loaded as soon as the tag appears on the page” which I miss interpreted as a tag appearing on the viewport of user.

Yes this appears on the docs for eagerly loading a frame and i think it clarifies properly that it should just appear on the page (exist in dom) and not be necessarily visible.

On the other hand, for lazy it clearly says that they don’t start loading until they become visible