Skip to content

.MustFrame() Fails to Get Content of Lazy-Loaded Iframes #1180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cnscottluo opened this issue Apr 14, 2025 · 1 comment
Open

.MustFrame() Fails to Get Content of Lazy-Loaded Iframes #1180

cnscottluo opened this issue Apr 14, 2025 · 1 comment

Comments

@cnscottluo
Copy link

cnscottluo commented Apr 14, 2025

Rod Version: v0.116.2

For iframes that load in the standard way, the .MustFrame() method can be used to retrieve their content. However, when dealing with iframes that implement lazy loading, for example:

<iframe loading="lazy" src="video-player.html" title="..."></iframe>

directly accessing the content using .MustFrame() may not work before the iframe is fully loaded. What is the recommended approach to obtain the content in such scenarios?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant