tag : optimization

Delay Initialization With jQuery Delegation

As the internet fills with more and more JavaScript code, we need to become more and more aware of the impact our code has on performance. One of the big pain points can come from all of your code being initialized and loaded during jQuery.ready() or (if you’re a good boy who puts all the code at the end of the document) right away. We can delay some initialization until later, right?

Backbone Application Walkthrough Part 5: RequireJS - Video Tutorial

Finally! We’ve made it to the end of the Backbone.js Application Walkthrough video tutorial series. In this final video, we make few small adjustments for the sake of organization and a bunch of other changes that convert the application to work using RequireJS. Almost every file gets touched in this video, but each only receives minor changes in order to create an overall major change in modularity and optimization.

Walking Through jQuery Plugin Boilerplate

Building jQuery plugins can be very fun and is done by many, many people today. The jQuery team has made it pretty darn easy to get up and running creating jQuery plugins, so much so that many JavaScript developers who don’t really know what they are doing jump onto the bandwagon too. This leads to horrible code floating around all over the internet. Thankfully, some very smart people came up with jQuery plugin boilerplates. Today I’ll walk you through one and show you how they make jQuery plugin coding simpler and more organized.

5 Tips to Make Your jQuery Plugins Awesome

jQuery plugins are popping up all over the place and just about everyone is trying to get in on the action. What determines whether a plugin is good or bad for you is largely up to your opinion and your requirements, but there are few things that you can do when writing your plugins to guarantee at least a bit of quality and standardization in your plugins that everyone who looks at your plugin code will be thankful for.

1024 Bytes of JavaScript Power

Once again, JavaScript programmers all over the world are being called to show off their skills in a competition. What is the most amazing thing you can program in JavaScript? Here’s the catch, though: you can only use 1 kilobyte of JavaScript code.

3 Simple Things to Make Your jQuery Code Awesome

jQuery is one of the most popular (if not the most) JavaScript libraries in existence and a great number of people use it to do some amazing things. Personally, jQuery is what got me excited for learning JavaScript. The problem is that a lot of programmers don’t understand that with all that power massive amounts of CPU cycles are used. As much as jQuery engineers try to optimize jQuery, they are always limited in how fast they can make it go. There are a few things that you, as a user of jQuery, can do to make your jQuery code faster.