V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
karthao
V2EX  ›  程序员

关于前端loader,除了seajs,你们还用什么?

  •  
  •   karthao · Dec 26, 2013 · 5599 views
    This topic created in 4511 days ago, the information mentioned may be changed or developed.
    16 replies    1970-01-01 08:00:00 +08:00
    judasnow
        1
    judasnow  
       Dec 26, 2013
    requirejs ?
    GinoSin
        2
    GinoSin  
       Dec 26, 2013
    模块化的话,用seajs,requireJS

    旧的简单页面要用加载器 用In.js
    7anshuai
        3
    7anshuai  
       Dec 26, 2013
    headjs, 支持响应式设计, 特性检测, 文件加载
    steeeeps
        4
    steeeeps  
       Dec 26, 2013
    amd 吧,requirejs
    loethen
        6
    loethen  
       Dec 26, 2013
    Modernizr
    ijse
        7
    ijse  
       Dec 26, 2013
    有个labjs,蛮简单的。

    国外更多使用requirejs
    yakczh
        8
    yakczh  
       Dec 26, 2013
    angularjs是用amd还是cmd?
    emric
        9
    emric  
       Dec 26, 2013
    @yakczh AngularJS 使用的是 AMD, 想少走弯路那就用 RequireJS.
    anubiskong
        10
    anubiskong  
       Dec 26, 2013
    requirejs ++
    Sivan
        11
    Sivan  
       Dec 26, 2013
    requireJS +1
    jiyinyiyong
        12
    jiyinyiyong  
       Dec 26, 2013
    @yakczh Angular 自带一套, 勉强可以搭配 RequireJS,
    国人的 Avalon[1] 倒是重现了 Angualar 并且内置 RequireJS
    https://github.com/RubyLouvre/avalon/

    考虑到要用 Handlebars 等英文社区各种模块, 我直接用 RequireJS 了
    aligo
        13
    aligo  
       Dec 26, 2013
    如果需要反load,打包到一个js文件,减少http请求,同时需要module来管理的做法
    可以试试:http://www.v2ex.com/t/94621

    XD
    davepkxxx
        14
    davepkxxx  
       Dec 26, 2013
    document.write
    robertlyc
        15
    robertlyc  
       Dec 27, 2013
    当然用requirejs seajs这种不伦不类的山寨货
    chemzqm
        16
    chemzqm  
       Dec 28, 2013
    requirejs 因为第三方支持很多一些
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2507 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 93ms · UTC 08:40 · PVG 16:40 · LAX 01:40 · JFK 04:40
    ♥ Do have faith in what you're doing.