René's URL Explorer Experiment


Title: feat(service-worker): improve default `SwRegistrationStrategy` · Issue #34464 · angular/angular · GitHub

Open Graph Title: feat(service-worker): improve default `SwRegistrationStrategy` · Issue #34464 · angular/angular

X Title: feat(service-worker): improve default `SwRegistrationStrategy` · Issue #34464 · angular/angular

Description: The problem In order to avoid negatively affecting the initial page-load time, @angular/service-worker will (by default) wait for the app to stabilize, before registering the SW script. This can lead to a situation where the SW will neve...

Open Graph Description: The problem In order to avoid negatively affecting the initial page-load time, @angular/service-worker will (by default) wait for the app to stabilize, before registering the SW script. This can le...

X Description: The problem In order to avoid negatively affecting the initial page-load time, @angular/service-worker will (by default) wait for the app to stabilize, before registering the SW script. This can le...

Opengraph URL: https://github.com/angular/angular/issues/34464

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(service-worker): improve default `SwRegistrationStrategy`","articleBody":"**The problem**\r\n\r\nIn order to avoid negatively affecting the initial page-load time, `@angular/service-worker` will (by default) wait for the [app to stabilize][1], before registering the SW  script. This can lead to a situation where the SW will never be registered when there is a long-running task (such as an interval or recurring timeout), which can often be started by a 3rd-party dependency (without the developer realizing). Related issues: #20970, #34461\r\n\r\nThis can easily be missed by the developer and there is no other indication other than the SW is not in effect. This is particularly hard to detect, because the SW is typically not used during development and on production builds a previous SW instance might be in effect.\r\n\r\n##\r\n**Possible solutions**\r\n\r\nSince 4cfba5807, it is possible to overwrite this default behavior by [providing a different `SwRegistrationStrategy`][2]. Things we could do to remedy the situation (non-exhaustive list; up for discussion):\r\n\r\n- Change the default strategy to a custom one that wait for the app to stabilize, but registers anyway after X seconds (no matter whether stabilized or not).\r\n\r\n- Keep the current behavior, but print a warning after X seconds that the app has not stabilized yet and the SW has not been registered. (This won't change the current behavior, but will make it easier for developers to identify the problem.)\r\n\r\n[1]: https://angular.io/api/core/ApplicationRef#is-stable-examples\r\n[2]: https://angular.io/api/service-worker/SwRegistrationOptions#registrationStrategy","author":{"url":"https://github.com/gkalpak","@type":"Person","name":"gkalpak"},"datePublished":"2019-12-18T10:03:57Z","url":"https://github.com/angular/angular/issues/34464"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:832d3f9c-d972-c5b8-f5fa-553b9aa418ac
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEB5E:28815B:B9770E:F8A7B5:6B00F56F
html-safe-nonce54b4d7cabfb58a4930bb10fffbf4574a9849960d346039c4c2e4ffbc77c97099
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjVFOjI4ODE1QjpCOTc3MEU6RjhBN0I1OjZCMDBGNTZGIiwidmlzaXRvcl9pZCI6Ijg4NjEwNTQyODgzOTExMDc5NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0522eb4390793fd0be64196c5b53de90fc9bac83b99f5c07c451fd2dc221be7b
hovercard-subject-tagissue:539578209
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/34464/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0b72858da9b4b1f047fc2621e27700ff7a3cc270661f649199f8c4d21d6bf6dc/angular/angular/issues/34464
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0b72858da9b4b1f047fc2621e27700ff7a3cc270661f649199f8c4d21d6bf6dc/angular/angular/issues/34464
og:image:altThe problem In order to avoid negatively affecting the initial page-load time, @angular/service-worker will (by default) wait for the app to stabilize, before registering the SW script. This can le...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegkalpak
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/34464#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F34464
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F34464
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/34464
Reloadhttps://github.com/angular/angular/issues/34464
Reloadhttps://github.com/angular/angular/issues/34464
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/34464
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/34464
feat(service-worker): improve default SwRegistrationStrategyhttps://github.com/angular/angular/issues/34464#top
https://github.com/sonukapoor
area: service-workerIssues related to the @angular/service-worker packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Dec 18, 2019https://github.com/angular/angular/issues/34464#issue-539578209
app to stabilizehttps://angular.io/api/core/ApplicationRef#is-stable-examples
#20970https://github.com/angular/angular/issues/20970
#34461https://github.com/angular/angular/issues/34461
4cfba58https://github.com/angular/angular/commit/4cfba58072bd288dff58714db44e9b7edef4bc92
providing a different SwRegistrationStrategyhttps://angular.io/api/service-worker/SwRegistrationOptions#registrationStrategy
Nexthttps://github.com/angular/angular/issues/34464?timeline_page=1
gkalpakhttps://github.com/gkalpak
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
area: service-workerIssues related to the @angular/service-worker packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
on Dec 18, 2019https://github.com/angular/angular/issues/34464#event-2892946199
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on Dec 18, 2019https://github.com/angular/angular/issues/34464#event-2892946325
https://github.com/Splaktar
Splaktarhttps://github.com/Splaktar
on Dec 19, 2019https://github.com/angular/angular/issues/34464#issuecomment-567625022
https://github.com/sonukapoor
sonukapoorhttps://github.com/sonukapoor
on Mar 2, 2020https://github.com/angular/angular/issues/34464#issuecomment-593182413
@gkalpakhttps://github.com/gkalpak
@Splaktarhttps://github.com/Splaktar
gkalpakhttps://github.com/gkalpak
sonukapoorhttps://github.com/sonukapoor
on Mar 2, 2020https://github.com/angular/angular/issues/34464#event-3086539661
alxhubhttps://github.com/alxhub
on Mar 27, 2020https://github.com/angular/angular/issues/34464#event-3173432094
feat(service-worker): support timeout in `registerWhenStable` SW regi…https://github.com/angular/angular/commit/00efacf561e8e935dcfbf48bab153aab3247df9d
00efacfhttps://github.com/angular/angular/commit/00efacf561e8e935dcfbf48bab153aab3247df9d
alxhubhttps://github.com/alxhub
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
29e8a64https://github.com/angular/angular/commit/29e8a64cf02fa9b80d38c30091e0b730403c54c8
on Mar 27, 2020https://github.com/angular/angular/issues/34464#event-3173432116
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Apr 27, 2020https://github.com/angular/angular/issues/34464#issuecomment-620080768
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Apr 27, 2020https://github.com/angular/angular/issues/34464#event-3276502929
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/34464
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/34464
sonukapoorhttps://github.com/sonukapoor
area: service-workerIssues related to the @angular/service-worker packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.