Comments (7)
Any progress on this issue? This seems to be a tough one to track one.
from webgazer.
It appears the webgl is not properly set up when the webgazer.js is in the head. It is because the browser will download the javascript and proceed down the line of the html. If the javascript url reference in the head gets stuck it would cause the issue. I have add an async tag when putting the script reference into and it seems to solve the problem.
from webgazer.
Ahh good find! That makes sense. Would async still occasionally cause problems since it's sort of introducing a race condition? Do you have a suggestion to make sure that developers do this properly to avoid this bug in the future?
from webgazer.
Using async will excute the script while the page continues parsing. From what I see, it doesn't cause problem regarding switching to the slower version of javascript. But if the race condition does cause problem, they can use defer instead of async which would parsing the page first before excuting webgazer.js. It would still solve the problem but also eliminate the potential of introducing a race condition.
from webgazer.
Got it, async sounds like a good solution for now. defer might make things load a bit slower, but might be good to mention as well. Can we add a note about using async/defer in the documentation/readme?
from webgazer.
Yes, we could add the note into the readme
from webgazer.
Added a note to the README regarding this
from webgazer.
Related Issues (20)
- Doesn't work in Safari when video is hidden HOT 6
- Dataset extractor broken on 3.0.0 HOT 7
- Corrupted archive heatmap-tutorial HOT 4
- Live demo served on internet HOT 1
- Webgazer on saved webcam video files HOT 1
- Vulnerabilities issue HOT 1
- Using a external camera HOT 2
- Uncaught (in promise) TypeError: failed to fetch HOT 3
- Record a session HOT 1
- Webgazer Prediction reverts back to center on extremes. HOT 1
- Storing calibration model HOT 1
- TypeError in ridgeWeightedReg.mjs HOT 6
- Uncaught (in promise) DOMException: Requested device not found HOT 1
- Web App/Page freezes when Face goes out of Camera or has sudden movements
- WebGazer is not able to capture Data on switching tabs in Browser HOT 2
- Webgazer blink detection HOT 5
- Feature request: Minified version HOT 2
- Feature request: Types HOT 1
- v3.0.0 vs v2.1.0 improvements? HOT 2
- Content Security Policy HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webgazer.