Re: [w3c/webcomponents] Make JavaScript Files a Valid Entry Point to a Web Page (#807)

Very interesting discussion. I have recently been developing a system that is javascript-centric. I arrived at it after realizing that javascript was the only container type that could hold all other types meaningfully within a single file, minimizing the need for round-trips to the server. I also discovered that javascript couldn't be used as the outermost container, though, and had to place it in an HTML wrapper file.

Thanks to @WebReflection  and @mikesamuel for the clever techniques mentioned here, I'll be evaluating them for my development, in hopes that the javascript-first idea @Lonniebiz is promoting can someday come to fruition in some form. As @mikesamuel pointed out, it would only take a new mime-type and browser recognition of that mime-type to implement it, and, due to mimetypes-from-file-extensions conversion databases, probably a new file extension to avoid migration issues.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/807#issuecomment-583055826

Received on Thursday, 6 February 2020 18:54:51 UTC