search

Home  >  Q&A  >  body text

javascript - sea.js require.js, a modular loading framework, how to reasonably compress and merge code

For example, most of the current modular loading frameworks Seajs Require.js should have this problem. How to merge codes reasonably? The first ones I thought of were these

  1. Load according to the module of the website

  2. Compress all

Is there a more mature solution~

迷茫迷茫2750 days ago470

reply all(1)I'll reply

  • 滿天的星座

    滿天的星座2017-05-16 13:03:07

    seajs以前都是基于spm的生态做构建的,也可以通过sea-combo结合tengine做服务器动态合并的,可惜现在官网没了...
    requirejsIt’s not that particular, it’s so strong and tough that you can press it no matter how hard it is.

    reply
    0
  • Cancelreply