1. Go to Develop in the menu bar.
2. Open Experimental Features.
3. Find WebGL in the list. Click it if it doesn't have a check mark by it.
If there is no Develop tab in the menu bar, you can add it by doing the following:
1. Open Preferences in the Safari menu.
2. Go to the Advanced section.
3. Enable Show Develop menu in menu bar.