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

jQuery (vs JavaScript)

jQuery (vs JavaScript)

A lightning talk from a CTFEDs workshop (http://www.meetup.com/ctfeds/events/223987693/)

28a7165396905ffabc4d1f45609efc39?s=128

Steve Barnett

August 20, 2015
Tweet

Transcript

  1. jQuery (vs JavaScript) ctfeds.org/jquery

  2. TL;DR: Think about it (Carefully)

  3. Don't use jQuery by default

  4. What we'll cover jQuery Cutting the Mustard

  5. Ask yourself: Who does this help? Me or my users?

  6. jQuery !

  7. jQuery ! Makes complex things simple(r)

  8. jQuery ! well maintained well tested

  9. jQuery ! avoid bugs (even in modern browsers)

  10. jQuery ! CDNs

  11. jQuery !

  12. jQuery ! Parse and execution time can be slow

  13. jQuery ! Adds a dependency

  14. jQuery ! Can be overkill

  15. jQuery ! Can be painful to upgrade

  16. jQuery ! Solving their problems, not yours

  17. jQuery Plugins Same as jQ itself Sort of

  18. Ok, but how? youmightnotneedjquery.com youmightnotneedjqueryplugins.com microjs.com

  19. And Now for Something Completely Different

  20. Cutting the Mustard if('querySelector' in document && 'localStorage' in window

    && 'addEventListener' in window) { // load fancy js stuff }
  21. Use less JS Optimise it

  22. Thanks! ctfeds.org/jquery