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

Update search timing #7741

Merged
merged 1 commit into from
Nov 2, 2021
Merged

Update search timing #7741

merged 1 commit into from
Nov 2, 2021

Conversation

Pomax
Copy link
Contributor

@Pomax Pomax commented Nov 2, 2021

Closes #7667
Supercedes #7709

This updates the build so that search.js ends up as "its own file" in the frontend/js dir, getting loaded as part of the <head> payload for catalog pages (PNI homepage + category pages) with async defer so that it can be used as soon as the page DOM is ready for reading.

Note that you'll want to hide whitespace for reviewing file changes in this case: https://github.com/mozilla/foundation.mozilla.org/pull/7741/files?diff=unified&w=1

Test URL: (review app pending)

@Pomax Pomax requested a review from fessehaye November 2, 2021 17:41
@Pomax Pomax changed the base branch from main to pni-q3-2021 November 2, 2021 17:42
@mofodevops mofodevops temporarily deployed to foundation-s-update-sea-y8fybp November 2, 2021 17:42 Inactive
@Pomax Pomax merged commit 38e9866 into pni-q3-2021 Nov 2, 2021
@Pomax Pomax deleted the update-search-timing branch November 2, 2021 17:50
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.

[PNI] Search - make search.js its own file, so we can load it independently of the React bundle
3 participants