On the other hand at some point you're probably going to work locally. To do that it's recommended you run a simple web server. There are plenty to choose from that are simple to use and require very little setup.
Using node.js as a server
npm install -g http-server(on OSX put
sudoin front of that.
http-serverto start serving the files in the current folder OR
http-server path-to-folderto server a different folder
http://localhost:8080/name-of-fileto view your WebGL webpage
Using devd as a server
devd .to server files from the current folder or
devd path-to-folderto serve a different folder
http://localhost:8000/name-of-fileto view your WebGL webpage
Using Servez as a server
http://localhost:8080or pick "Launch Browser"
Using "Web Server for Chrome" Chrome Extension
Install the Web Server From Chrome
Launch it from the Apps icon on a new tab page.
Set the folder where your files are then click the
In WebGL it is very common to load images. In WebGL there are restrictions on how images can be used. Specifically WebGL can not use images from other domains without permission from the server hosting the images. Services that currently give permission to use images include imgur and flickr. See Loading Cross Domain Images. Otherwise you'll need to have the images on the same server as your webgl page or use other creative solutions like generating images with a canvas tag