Turns out there’s a synchronous way to detect <img src=svg> support in JavaScript: http://mths.be/bqs
-
-
Replying to @mathias
@mathias it seems document.implementation.hasFeature() and document.isSupported() always return "true" in latest browsers.@chriscoyier2 replies 1 retweet 1 like
Replying to @diegoperini
@diegoperini Yeah.
document.implementation.hasFeature('weak', 'inference')
+@chriscoyier
6:25 AM - 11 Feb 2014
0 replies
1 retweet
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.