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

Fix GOV.UK Frontend initAll() on management pages #2349

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Conversation

colinrotherham
Copy link
Contributor

@colinrotherham colinrotherham commented Sep 26, 2023

On management pages, window.GOVUKPrototypeKit is unavailable when GOV.UK Frontend init.js runs

This PR loads kit.js first to ensure window.GOVUKPrototypeKit is available

Fixes #2348

By loading `kit.js` first this ensures `window.GOVUKPrototypeKit` is available when initialising GOV.UK Frontend
BenSurgisonGDS
BenSurgisonGDS previously approved these changes Sep 26, 2023
BenSurgisonGDS
BenSurgisonGDS previously approved these changes Sep 26, 2023
@colinrotherham colinrotherham merged commit c11a9e7 into main Sep 26, 2023
27 checks passed
@colinrotherham colinrotherham deleted the frontend-init branch September 26, 2023 16:03
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

Successfully merging this pull request may close these issues.

Management pages skip GOV.UK Frontend initAll()
2 participants