Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boilerplate Javascript scripts/plugins?

I've been really enjoying getting into Paul Irish's HTML5 Boilerplate which gives best practices for html5, javascript, css and even server side stuff with the likes of a boilerplate .htaccess file. However, the Javascript file that comes is empty- for us developers to put in what we like.

I am wondering what Javascript plugins and scripts developers tend to use across all their sites? I want to create a boilerplate site that I start off with when I start building a new site. I tend to use JQuery, so scripts and plugins that use that would be useful.

Ideas that I have would be:

  • swfobject
  • jPlayer? (for sites that have video and audio) Not sure about this one
  • The Fade Anything Technique
  • A clear inputs script (clear any inputs when clicked)
  • externalLink script (open in new tab/window when class=externalLink)
  • Break out of frame script

The above aren't particularly good examples, but that's why I am asking the question!

like image 366
iagdotme Avatar asked Mar 18 '11 09:03

iagdotme


2 Answers

underscore.js. yepnope.js.

With the latter, it would be good if you used this to conditionally load plugins. Also it could be an idea to use module patterns for this boilerplate, possibly keep it namespaced.

like image 189
Ross Avatar answered Sep 19 '22 19:09

Ross


Hmm I am not sure if these are applicable to "all" sites. We do recommend using good JavaScript patterns, but overloading a page with plugins is something I personally do not subscribe to :)

like image 32
Divya Manian Avatar answered Sep 20 '22 19:09

Divya Manian