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

You're right maybe it can't be done universally. But you could add an optimizer to a production build system which rewrites any instance of:

  window.Library.util.add()
To:

  var window_Library_util_add = window.Library.util.add;
  window_Library_util_add();


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: