-
Notifications
You must be signed in to change notification settings - Fork 23k
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
[FW][IMP] website_event_track_online: PWA adds prefetch for offline use #56159
Closed
fw-bot
wants to merge
2
commits into
odoo:master
from
odoo-dev:master-saas-13.3-event-pwa-prefetch-app-9rGr-fw
Closed
[FW][IMP] website_event_track_online: PWA adds prefetch for offline use #56159
fw-bot
wants to merge
2
commits into
odoo:master
from
odoo-dev:master-saas-13.3-event-pwa-prefetch-app-9rGr-fw
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit convert ES6 syntax (mainly Arrow Functions & String Templates) to ES5 for compatibility with older browsers on the frontend. Also some linting for consistency. X-original-commit: 177860e
This commit adds the prefetch of the current page's children (cf. under the same scope) to be available for offline use. For performance reason, only the first-level children are added to the cache to avoid a huge amount of requests and/or resources used by simply loading the event website's pages. Also, for the same reason, this process is delegated to the ServiceWorker to avoid cluttering the Main Thread. Note: due to some security restriction introduced in the Fetch spec, some redirects may prevent offline-requests from being properly fulfilled from the cache. See references for further details. References: - whatwg/fetch#763 - GoogleChromeLabs/sw-precache#220 - https://fetch.spec.whatwg.org/#concept-request-redirect-mode X-original-commit: bc9a306
Ping @pparidans, @adr-odoo To merge the full chain, say
More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port |
robodoo
added
☑ legal/cla
CI 🤖
Robodoo has seen passing statuses
and removed
☐ legal/cla
labels
Aug 19, 2020
@fw-bot r+ |
robodoo
pushed a commit
that referenced
this pull request
Aug 19, 2020
This commit adds the prefetch of the current page's children (cf. under the same scope) to be available for offline use. For performance reason, only the first-level children are added to the cache to avoid a huge amount of requests and/or resources used by simply loading the event website's pages. Also, for the same reason, this process is delegated to the ServiceWorker to avoid cluttering the Main Thread. Note: due to some security restriction introduced in the Fetch spec, some redirects may prevent offline-requests from being properly fulfilled from the cache. See references for further details. References: - whatwg/fetch#763 - GoogleChromeLabs/sw-precache#220 - https://fetch.spec.whatwg.org/#concept-request-redirect-mode closes #56159 X-original-commit: bc9a306 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com> Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
Staging failed: ci/runbot (view more at http://runbot.odoo.com/runbot/build/3912869) |
@robodoo retry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CI 🤖
Robodoo has seen passing statuses
forwardport
This PR was created by @fw-bot
RD
research & development, internal work
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the prefetch of the current page's children (cf. under
the same scope) to be available for offline use.
For performance reason, only the first-level children are added to the
cache to avoid a huge amount of requests and/or resources used by simply
loading the event website's pages. Also, for the same reason, this
process is delegated to the ServiceWorker to avoid cluttering the Main
Thread.
Also, this PR perform some linting and ensure ES5 usage (for compatibility purpose).
Forward-Port-Of: #56058