Advertisement

Build your Own JavaScript Library - Part 1

by

Over the course of the past few years, the JavaScript community has exploded exponentially. It it’s safe to assume that libraries are the primary reason we’ve seen such astonishing growth. Thanks to these libraries, the differences between the popular browsers are minimized, making cross-browser development much easier than it used to be.

This tutorial includes a screencast available to Tuts+ Premium members.


Also available in this series:

  1. Build your Own JavaScript Library - Part 1
  2. Build your Own JavaScript Library - Part 2

But even so, there comes a point in many JavaScript developers' lives when the need for an all-encompassing library isn't needed, and a simpler, and more refined library to iron out the cross-browser wrinkles is desired. There are many libraries to choose from, but why not write your own? After all, you are the best person to determine your needs and provide a solution that fits you. But how do you do that? How do you start? How do you handle cross-browser issues? We’ll build our own in this series!

That is what I hope to answer in this series, but bear in mind the solution presented here are just a drop in the bucket of possibilities. It is not a one-size-fits-all solution, but I hope it gives you insight of how you can approach the creation of your own library.


Full Screencast


Advertisement
Related Posts
  • Web Design
    HTML5
    How to Create Your Own HTML Elements With Web ComponentsPreview temp
    What are web components you ask? In a nutshell, web components give you a way to create your own custom HTML elements which can do just about anything you need them to.Read More…
  • Code
    WordPress
    Trim the Bloat: Taking Another LookTrimthebloat
    Throughout this series, we've been looking at a number of different strategies for keeping our WordPress installations as lean as possible. In doing this, we've talked about a number practical tips to follow regardless of the nature of your project. In this post, we're going to summarize everything that we've covered in the series in order to provide a single page guide to the tips we've covered, and a reference to the rests of the post in this series.Read More…
  • Code
    Web Development
    Resources to Get You Up to Speed in Node.jsNodejs retina preview
    Last week, we took a look at my recommended JavaScript resources. This week, we'll review some of my preferred Node.js resources which both beginners and seasoned coders should find helpful.Read More…
  • Code
    WordPress
    Trim the Bloat: Optimize Your AssetsTrimthebloat
    In the first post in this series, we took a look at a few things that we can do in order to keep our WordPress installation healthy. But that's not all we can do. In this post, we're going to cover what to do with your assets like stylesheets, JavaScript files, images and more. Read More…
  • Code
    Mobile Development
    In the Spotlight: Brian LeRouxPreview image@2x
    The explosive growth of the mobile space has accelerated the search for a robust and viable cross-platform solution. In 2008, shortly after the introduction of the iPhone SDK and after fiddling with Cocoa and Objective-C, Brian LeRoux and his colleagues at Nitobi decided that their time was better spent building a cross-platform solution than building native mobile applications.Read More…
  • Code
    Interviews
    Interview With Peter CooperPeter cooper wide retina preview
    Catch up with software developer, Peter Cooper, just in time for O'Reilly's Fluent Conference.Read More…