News for hackers. Stuff that matters.
Re:Why Is No One Writing Language Runtimes? by pdkl95 on Saturday May 07, 2016 @09:00PM (#11652112)
> The only valid value, to this day, is "text/javascript".

Other script types have been supported for a while. Some compile-to-javascript languages can be setup to use script tags in their language. For example, CoffeeScript can be setup[1] to compile <script type="text/coffeescript"> tags at runtime.

Also, WebGL can load shaders[2] from script tags of type "x-shader/x-vertex" and "x-shader/x-fragment".

[1] http://coffeescript.org/#scripts

[2] see the source of http://mdn.github.io/webgl-examples/tutorial/sample3/ for a basic example.

There are no comments on this comment yet.