Thanks Yoav, interesting to know that the spec's going to be changed for this. I'd like to talk with people to see how we might tackle this. (I'll likely would like us to quickly try & see if we can get the rough estimates of the impact. We could probably add some UMAs and Mozilla may have some numbers too? Either way I can imagine this could have impacts.
On Tue, May 26, 2020 at 11:49 PM Hiroki Nakagawa <nhi...@google.com> wrote:Hi Yoav,I agree this seems to have high-impact on applications that heavily use importScripts(), and it's nice to fix it.As I replied in the crbug, this probably needs some architectural changes in worker/loader implementation that take time. The worker thread should be blocked until all scripts are fetched, but I'm not clearly sure how to implement it yet (fetching scripts in background threads and waiting for completion of them using base::WaitableEvent?). I roughly estimate this work will take 1+ quarter for investigation, designing, implementation, and testing on all worker types.
--
You received this message because you are subscribed to the Google Groups "loading-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loading-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/loading-dev/CADWWn7WkiG%3D93FL_BEukPKQbpwOxdERrFNr39YDLjhwLrzuqWQ%40mail.gmail.com.
Wix is a reasonably large player.Yoav, do you know for what aspect(s) of their product they are currently using workers?I'm guessing that their need aren't too specific and so depending on what they are using it for, it's likely that other CMS (possibly more categories) would be interested in replicating their approach (provided that we fix the performance issue).
In terms of assessing the potential impact, we can ask them to run a lab A/B between Chrome and Firefox, as that would at least give us an order of magnitude.
Is it worth it to even bother to optimize this detail while module workers are already a thing (I am guessing import statements are better optimized?) and probably the future?