Comment by jasonkester
5 years ago
It's not even sloppy
It’s the definition of sloppy. Rule One of Javascript is that you check every 3rd party dependency before every call.
window.ga && ga(“user likes socks”);
For exactly this reason: because often all you get is what you sent down the wire yourself. You still need to work with that.
No comments yet
Contribute on Hacker News ↗