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

> How do you set the doctype, meta tags and prefetch in your javascript file?

The browser can recognize the deference between **"a javascript file directly navigated to"** and a**"javascript file referenced by an html document"**. The javascript file would be required to generate a valid html document, including doctype and meta tags. I'm not sure I understand what you mean by prefetch. But, after this document is dynamically created (client-side), it could be treated like any other html document, the fact that it was generated by client-side javascript could be transparently ignored after that dynamic creation.

-- 
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-486307275

Received on Wednesday, 24 April 2019 16:05:08 UTC