- Home /
WebGL iOS9 Reference Error
I'm attempting to run a game via WebGL on iOS mobile devices.
On iOS 10 it works just fine, but on iOS 9, it doesn't load and instead gives me this error "Invoking error handler due to ReferenceError: Can't find variable: performance".
Does anyone know where this is coming from, or whether Unity WebGL supports iOS 9 at all?
Answer by aFeesh · Jul 15, 2017 at 01:11 AM
I solved this particular error by opening the UnityLoader.js that is created under the Build folder for your WebGL build.
I then changed the two places the word 'performance' was called and replaced the first reference with 0 and the second reference with 30.
Your answer

Follow this Question
Related Questions
Facebook - Is it possible to logout other active sessions? 0 Answers
Could not build 'GoogleMobileAds' on ios 1 Answer
Input.inputString on iOS - Empty? 0 Answers
Mobile OnGUI 1 Answer
Shader optim ? 1 Answer