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

Render all legacy resources at the end of the page #2354

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

ramonski
Copy link
Contributor

Description of the issue/feature this PR addresses

This PR moves the legacy resource slots at the end of the page to ensure these are loaded after the JS/CSS from the resources viewlet (rendered in the IHtmlHead viewlet manager) and the HTML is completely loaded.

Current behavior before PR

Some JS/CSS are not always loaded when reloading the sample add form

Desired behavior after PR is merged

Legacy JS/CSS are loaded at the end of the page to ensure the all other resources and HTML is loaded completely before.

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

@ramonski ramonski requested a review from xispa July 27, 2023 12:16
@xispa xispa merged commit f0c41b8 into 2.x Jul 27, 2023
2 checks passed
@xispa xispa deleted the render-legacy-resources-at-the-end branch July 27, 2023 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants