----- Original Message -----
From: "Florian Bösch" <firstname.lastname@example.org
To: "David Sheets" <email@example.com
Cc: "public webgl" <firstname.lastname@example.org
Sent: Sunday, May 20, 2012 4:01:30 AM
Subject: Re: [Public WebGL] WebGLSL Media Type Proposal
On Sun, May 20, 2012 at 7:07 AM, David Sheets < email@example.com
I would like to propose the IANA registration of an official WebGLSL
media type by Khronos and the WebGL WG.
Sure, every file can have a mime-type. I call mine .shader, .glsl, .shaderlib, .shadertemplate, .foo and .bar.
WebGLSL is a new language for the Web and like the other Web languages
should have an associated media type for use in protocols like HTTP
and tags like <script>.
The purpose of <script> is to perform: 1) a text fetch from the server 2) execute the obtained source. This is what makes it a "script". Putting GLSL into <script> does not carry any of these conveniences, and would be in fact a poor mans XHR, since the scripttag cannot perform anything sensible on the obtained text other than making it available as text after you queried the scripptag from the DOM and looked up its innerText.
It is generally agreed that using scripptags to transport shader source is a bad practice, and this has nothing to do with the fact that you can't src them.