I'd rather that /html/forms.js is not required to be included just to do form submissions or web socket connections. The server endpoints should be documented so that these more foundational things can be set up.
Furthermore, .js is not going to cut it with the current script ecosystem. There should probably be a few different options for script inclusion that can be available at different URLs.
- Something that sets a global
htmlForms or something
- AMD/UMD module (unsure if UMD would automatically do the above)
- ES Module support
Then a consumer can import the exposed module however the consumer would like.
I'd rather that
/html/forms.jsis not required to be included just to do form submissions or web socket connections. The server endpoints should be documented so that these more foundational things can be set up.Furthermore,
.jsis not going to cut it with the current script ecosystem. There should probably be a few different options for script inclusion that can be available at different URLs.htmlFormsor somethingThen a consumer can import the exposed module however the consumer would like.