Front-End Development Javascript

Authored by Corey Ballou

1 Comment

Optimizing (and Debugging) Javascript With Firebug

I was vastly unaware of the number of useful functions built into Firebug beyond console.log(). The official Firebug site has a brief overview of the available commands which can be found here. Here’s a couple of quick examples to get you going.

You can use console.time() and console.timeEnd() to quickly log the time spent between the two.

If you wish to profile the amount of time spent in each function call, you can use console.profile() in conjunction with console.profileEnd():

Lastly, you can call for a stack trace at any point in time by simply calling console.trace().

Author: Corey Ballou

Corey Ballou is the CEO of Whether you're a student, young professional, entrepreneur, startup, or small business, you can be up and online fast with your own custom domain, email, and webpage on POP. Corey is a professional PHP developer by trade, specializing in custom web applications development for startups, small businesses, and agencies. Follow Corey on Twitter @cballou.

  • Anders

    I have just got a blog and use about 50 different plugins. Thank you very much for your plugin. It complete my website