jQuery compiled with Google Closure Compiler

后端 未结 10 861
抹茶落季
抹茶落季 2020-11-29 04:52

Has anyone compiled jQuery against Google\'s newly-released Closure compiler?

There has been reported huge savings in code size. I\'m curious what the benefit is if

10条回答
  •  抹茶落季
    2020-11-29 05:36

    The closure compiler eliminates any code that you don't actually use. The typical web page will only use a small fraction of jQuery functions, so the most benefit will come from compiling your code together with the full version of jQuery.

提交回复
热议问题