Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you are going to go that simple, then why even pass function formatCurrency on the main page, you can pass the whole function back with the document.body.appendChild method.

Then instead of 628 bytes, you'll have just 100 or so. Then make the script loader a re-usable function for other data on the page.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: