tutorial 1: code libraries and hosting/CDN
watch it on YouTube
Notes
- jQuery is a JavaScript library that is
popular with developers
- streamlines syntax
- leverages capabilities
of other HTML-friendly resources--CSS, AJAX, etc.
- makes animation easy
- 2 main ways to use libraries
- download and host your own copy
- link to a hosted library through
a CDN
- Hosting vs. CDN
- If you host a library, you need
to factor in the size of the library file
- Hosting also meangs maintaining
the library as updates are made--if you don't, you
may end up using depreciated code.
- Using a CDN alleviates any file
size concerns
- CDNs also take care of maintenance
and updates; you may have to change a line of
code when major updates occur.
Definitions
- code library:
- set of stable resources that can be
added to projects and used to simplify,
extend, or add functionality to
existing coding languages.
- CDN
- Content Development Network--repository
that hosts and maintains code libraries