Stop checking for SVG support on every hover

https://gerrit.wikimedia.org/r/#/c/121607/3/resources/ext.popups.core.js
Bug: 61267

Change-Id: Ibdd5a42c72c43cd797eeb0b3d4c7ba0166e0643d
Break ternary operations into multiple lines

Bug: 61267
Change-Id: I777c658de502c934abd72eea9e4bd72ceb956560