4 ms·
From the readme: <img src="logo_<!--= (isMobile() ? "50x50" : "200x200") -->.jpg"> Isn't this a SPOF? If the toplevel.js script fails to load/execute, the <img
by SimeVidas 12y ago
From the readme: <img src="logo_<!--= (isMobile() ? "50x50" : "200x200") -->.jpg">
Isn't this a SPOF? If the toplevel.js script fails to load/execute, the <img> will request "logo_.jpg" which does not exist. (The example implies that "logo_50x50.jpg" and "logo_200x200.jpg" exist.)
- phpnode 12y agoyes, the whole thing will break if JS is disabled or that script fails to load, but this is hardly a unique failing of TopLevel. Most websites will break under these circumstances these days.