3 ms·
> Runs in Chromium 73.0.3683.103 after several seconds, seriously, this thing is slow! Interestingly, this renders on my iPad almost instantly. Also, fun fact
by saagarjha 7y ago
> Runs in Chromium 73.0.3683.103 after several seconds, seriously, this thing is slow!
Interestingly, this renders on my iPad almost instantly.
Also, fun fact: you can embed JavaScript in an SVG. Just add a script tag: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script https://developer.mozilla.org/en-US/docs/Web/SVG/Element/scr...
- jorams 7y agoIn Chromium 76.0.3809.132 it renders instantly for me as well. I wonder what changed. It doesn't render correctly in Firefox, though that finishes instantly as well.
- jansan 7y agoJavascript should have never been added to SVG. IMHO Javascript should always be outside the SVG.
- nightfly 7y agoJavascript in SVGs only gets executed when the top-level document is an SVG, never when the SVG is used as an img.
- ttctciyf 7y ago> you can embed JavaScript in an SVG I guess that settles the Turing complete issue then!