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

stop requesting mappings over the network and fix shoebox usage #923

Merged
merged 3 commits into from
Jul 24, 2024

Conversation

mansona
Copy link
Member

@mansona mansona commented Jul 20, 2024

for some reason we're requesting the mappings.json file on every initial page load (and not cached in the shoebox). This is in the application afterModel hook so there is no chance that we will ever not make this request, so it's worth just backing the json into the JS bundle to save a request

Copy link

netlify bot commented Jul 20, 2024

Deploy Preview for ember-api-docs ready!

Name Link
🔨 Latest commit fc64a22
🔍 Latest deploy log https://app.netlify.com/sites/ember-api-docs/deploys/66a018bcd553db00085adab5
😎 Deploy Preview https://deploy-preview-923--ember-api-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mansona mansona force-pushed the mappings-request branch 3 times, most recently from f49a627 to 31938d8 Compare July 22, 2024 16:54
@mansona mansona changed the title stop requesting mappings over the network stop requesting mappings over the network and fix shoebox usage Jul 22, 2024
@mansona mansona force-pushed the mappings-request branch 2 times, most recently from e5fbddf to 488ebf7 Compare July 23, 2024 11:58
@mansona mansona requested a review from a team July 23, 2024 13:11
for some reason we're requesting the mappings.json file on every initial page load (and not cached in the shoebox). This is in the application afterModel hook so there is no chance that we will ever not make this request, so it's worth just backing the json into the JS bundle to save a request
Copy link
Contributor

@MinThaMie MinThaMie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@mansona mansona merged commit f50f4fe into main Jul 24, 2024
4 checks passed
@mansona mansona deleted the mappings-request branch July 24, 2024 08:53
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.

2 participants