Sorry, this video is for subscribers only.

Click here to subscribe!

Race to the Polls

Our PhantomJS smoke test uses a timeout to check which fonts we’ve loaded. Not only is it slow, it’s a race condition that’s sure to bite us in the future. We refactor our code to replace the timeout with a polling-based solution that eliminates the race condition.

comments powered by Disqus