Re: [whatwg/fetch] preload, destinations, and module scripts (#486)

Not expressing an opinion on this thread (yet anyway) but just a clarification:

> @annevk if that is the thing dherman was referencing in his email, it is a custom parser that is attempting to implement a proposal that has been rejected by TC39 a couple times (where you add "use module" instead of using type="module"). It doesn't help this situation, which deals with standard JavaScript.

No, the point is that it's an implementation technique that allows you to cache the work of parsing such that you can reuse the result _regardless_ of whether the source ends up being used as a classic script or module script.

IOW, it's an implementation technique that demonstrates the feasibility of a preload mechanism where the author doesn't specify what kind of JS payload is being parsed, but that gets all the same performance benefits since you can have a single pre-parser that works for any kind of JS payload.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/486#issuecomment-282045433

Received on Thursday, 23 February 2017 18:42:00 UTC