Comment on Is a web browser using another scripting language feasible?
lime@feddit.nu 1 day ago
there were plans for multiple scripting languages for the web, hence the type=“javascript” attribute on the <script> tag. the thing that became javascript was originally more like a lisp, but netscape wanted to cash in on the popularity of java applets so they made the language look more java-y.
the bones are there, there’s just no sense in implementing it in mainstream browsers now.
e0qdk@reddthat.com 1 day ago
Microsoft had a Visual Basic variant (VBScript) in IE that got some attention back in the 90s; it’s probably just as well that JS won instead of that…
In modern webdev
type=“module”is used to indicate an ES6 module andtype=“importmap”to include a JSON table of paths to modules. Still basically JS, but the parameter is still used in a meaningful way.lime@feddit.nu 1 day ago
i think they’ve even retired the original function of the attribute. sad.
e0qdk@reddthat.com 1 day ago
Personally, I think it’s particularly stupid that you can’t use it for GLSL shaders from external files…