extract shader script programming

Hi All,

I have one problem on extracting the shader script. Since I have many pages that will use the WebGL, it is better for me to manipulate the shader script and common script if I can extract them to one script file. Therefore, I extract the javascript part such as the matrix calculate and the mouse movement handling script to the js file.

However, I don't know how to extract the shader script into a js file because when I do it (same process as extracting javascript), the webpage will show the error message "cannot find the shader programming". Is there any method to extract the shader script into one file?