2 points · by blhack · 14y ago · 5 comments
What I mean is a .js file full of functions that you commonly use, and include in every project. Right now, I'm building myself one, and so far have stuff like:
A basic function for loading an external JSON.
A function called "modal", pops a jquery superbox.
A function called "chomp", which removes trailing newline characters from a string.
What I'd really love, however, is to also be able to include an "init" function that:
A) Loads necessary "helper" js, like jquery, jquery-ui
B) Loads necessary "helper" css, like css for jquery-superbox
I ask because I feel like _.js is a fantastic library that I've been using in almost every project of mine since first trying it out. I've really grown to like it, but am interested in what you mean by your comment.