• 请不要在回答技术问题时复制粘贴 AI 生成的内容
karthao
V2EX  ›  程序员

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

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

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

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

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

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