Skip to content
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

iframes at top of the page are not loaded #86

Open
wesleybl opened this issue Sep 27, 2023 · 0 comments
Open

iframes at top of the page are not loaded #86

wesleybl opened this issue Sep 27, 2023 · 0 comments

Comments

@wesleybl
Copy link
Member

We have a site with iframes at the top and they sometimes don't load. I believe this is because of the use of async here:

<script async tal:attributes="src <%= 'string:${view/site_url}/' + htmlWebpackPlugin.files.js[js] %>"></script>

When the script is executed, the HTML parse has not finished and therefore the iframe is not loaded. Since the iframe is already on the screen, there is no scroll event to "load the iframe"

When I change to defer, it worked. Would it be interesting to change it to defer?

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