Hacker News new | ask | show | jobs
by there 5945 days ago
the only downside would be if you are reusing the same javascript code on another page, this would cause the browser to download it again each time. if it's in a separate js file, the browser will (probably) cache it and make for a shorter download of each subsequent page.