New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 621939 link

Starred by 5 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

[Slow loading] Scripts loaded via XHR do not benefit from V8 code cache

Project Member Reported by junov@chromium.org, Jun 21 2016

Issue description

Web games that use the Unity game engine, such as https://apps.facebook.com/shopheroes/ are experiencing excessive load times in Chrome, mostly due to Script compilation.

I observed that upon reload, the code cache is not kicking in. It seems that the app is downloading the code in compressed form via XHR, then decompressing it into a blob, then the blob's URL is used to load it into a script tag.

What I think is happening is that because the blob is a brand new resource (unique URL every time),  the V8 code cache might not be recognizing it upon re-load.

1) Is this something we can fix with the code cache?
or
2) Is there a better way to implement script decompression + async loading that will play nice with the code cache.
 
Cc: jochen@chromium.org
Status: Available (was: Untriaged)
jochen@, does this seem like an issue for someone on the v8 team to investigate?

Comment 2 by jochen@chromium.org, Jun 22 2016

Brotli compress it and load it via an async script tag?
Cc: seththompson@chromium.org

Comment 4 by junov@chromium.org, Jun 22 2016

If the web platform does provides a portable solution already (comment #2), then perhaps this is a dev-rel "bug", not a Chrome bug.
Project Member

Comment 5 by sheriffbot@chromium.org, Jun 23 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 6 by jochen@chromium.org, Jun 27 2017

Owner: marja@chromium.org
Status: Assigned (was: Untriaged)
Cc: -junov@chromium.org

Sign in to add a comment