addyosmani/timing.js

ie8 doesn't safely fail

Open

#6 opened on Sep 25, 2014

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (123 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (1,504 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Want to encorporate this in our product behind a flag, however if the browser is ie8 (argh), ideally it just needs to fail silently without throwing a script error. Can we prevent the error for ie8?

Script throws an error

"'timing is null or not an object"

Contributor guide