3 ms·
"Something went wrong, please try again later :)" is cheap (try { } catch () { print "Something went wrong" }) "TypeError: Cannot read property 'submit' of nul
by richardwhiuk 3y ago
"Something went wrong, please try again later :)" is cheap (try { } catch () { print "Something went wrong" })
"TypeError: Cannot read property 'submit' of null" is cheap (just render whatever error you get).
Anything else is expensive, and probably doesn't gain you anything.