Re: inlining JS code at build time

2017-07-05 Thread Gregory Szorc
On Wed, Jul 5, 2017 at 6:36 PM, Kris Maglione wrote: > It's possible to use the preprocessor to join multiple JS files, but we've > been moving away from that as much as possible recently. > It is worth mentioning that we don't like to use the Python preprocessor because preprocessor syntax make

Re: inlining JS code at build time

2017-07-05 Thread Kris Maglione
It's possible to use the preprocessor to join multiple JS files, but we've been moving away from that as much as possible recently. With the script precompiler enabled, though, there isn't very much per-script overhead for scripts loaded via the subscript loader at startup. And if the new cod

inlining JS code at build time

2017-07-05 Thread zbraniecki
I'm working on a new feature which will add a new JS class. I can grow the main file (mozIntl.js) or add it in a separate file (mozIntlLocale.js). For readability, I think it would be nicer if I could add it as a separate file (I like to keep my files under 500 lines), but I don't want us to pa