move webgl context creation parallel to script loading