Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Loading js file

Loading js file

Overview on Asynchronous Module Definition and values hands off

975ff6c8166f6f32889f004a904ffa39?s=128

Oursky Limited

November 18, 2013
Tweet

Transcript

  1. Loading your JS Monday, 18 November, 13

  2. CommonJS Different framework reinventing the wheel Aimed to provide a

    standard lib for js as in python/ruby AMD is one of them Monday, 18 November, 13
  3. AMD Asynchronous Load Modules Definition Monday, 18 November, 13

  4. Implementation RequireJS, defacto standard, ~5k github star Nodules curl.js Monday,

    18 November, 13
  5. Don’t Monday, 18 November, 13

  6. Do Monday, 18 November, 13

  7. Module Definition Monday, 18 November, 13

  8. Load Automatic Monday, 18 November, 13

  9. Deployment? grunt-contrib-requirejs Monday, 18 November, 13

  10. YUI3 Since 2010 Requirejs API is informed by YUI().use() Drop

    in module, loader, combo, CDN CSS too!! Monday, 18 November, 13
  11. Values handoff Monday, 18 November, 13

  12. When and where? HTML Inline JSON AJAX Monday, 18 November,

    13
  13. Good of HTML With js disabled Monday, 18 November, 13

  14. Assume no js? rendr https://github.com/airbnb/rendr You can render the whole

    Backbone.js at server Actually, who browser the web without js? http://sighjavascript.tumblr.com Monday, 18 November, 13
  15. Mix them up Initial inline at HTML, JSON Update by

    ajax History API Monday, 18 November, 13