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

Remove require of search-with-autocomplete JS #3603

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

kevindew
Copy link
Member

This javascript is now provided by static 1 and is thus removed from this repo to ensure that we don't send the same asset to users multiple times unnecessarily.

It continues the convention of applications only adding the JS of components which are not provided by static 2.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

Some search page examples to sense check:

  • https://[HEROKU-APP-ID].herokuapp.com/search/all
  • https://[HEROKU-APP-ID].herokuapp.com/search/news-and-communications?parent=%2Feducation&topic=c58fdadd-7743-46d6-9629-90bb3ccc4ef0
  • https://[HEROKU-APP-ID].herokuapp.com/drug-device-alerts

This javascript is now provided by static [1] and is thus removed from
this repo to ensure that we don't send the same asset to users
multiple times unnecessarily.

It continues the convention of applications only adding the JS of
components which are not provided by static [2].

[1]: alphagov/static#3532
[2]: #2819
@govuk-ci govuk-ci temporarily deployed to finder-frontend-pr-3603 December 11, 2024 16:36 Inactive
@kevindew kevindew merged commit 2d77a23 into main Dec 12, 2024
13 checks passed
@kevindew kevindew deleted the avoid-dup-assets branch December 12, 2024 09:12
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.

3 participants