The number of online solutions provided for JavaScript is growing every day. However, the workflow of Web developers and designers frequently culminates to confusion and disorientation due the information overflow. In order to organize this information and provide you with helpful guidelines to successfully optimize your next Web project, we offer you this Smashing eBook JavaScript Essentials.


Filled with up-to-date lessons on coding reviews, JavaScript scopes and implementations, AJAX and various tips on JavaScript solutions, this eBook is essential for improving your JavaScript knowledge.


  • Seven JavaScript Things I Wish I Knew Much Earlier In My Career
  • Lessons From A Review Of JavaScript Code
  • Find The Right JavaScript Solution With A 7-Step Test
  • Ten Oddities And Secrets About JavaScript
  • What You Need To Know About JavaScript Scope
  • The Seven Deadly Sins Of JavaScript Implementation
  • A Quick Look Into The Math Of Animations With JavaScript
  • Searchable Dynamic Content With AJAX Crawling

Technical Information

  • Formats: PDF, EPUB, Kindle (DRM-free)
  • Pages: 142
  • Language: English
  • Released: December 2011
  • Publisher: Smashing Media GmbH
  • ISBN: 978-3-943075-21-2

Excerpt From Chapter 2

Lessons From A Review Of JavaScript Code — by Addy Osmani

Before we start, I’d like to pose a question: when was the last time you asked someone to review your code? Reviewing code is possibly the single best technique to improve the overall quality of your solutions, and if you’re not actively taking advantage of it, then you’re missing out on identifying bugs and hearing suggestions that could make your code better.

None of us write 100% bug-free code all of the time, so don’t feel there’s a stigma attached to seeking help. Some of the most experienced developers in our industry, from framework authors to browser developers, regularly request reviews of their code from others; asking whether something could be tweaked should in no way be considered embarrassing. Reviews are a technique like any other and should be used where possible.

Excerpt From Chapter 5

The Seven Deadly Sins Of JavaScript Implementation — by Christian Heilmann

Using JavaScript has become increasingly easy over the last few years. Whereas back in the day we needed to know the quirks of every browser, now many libraries such as jQuery, YUI, Dojo and MooTools allow someone who doesn’t even know JavaScript to spruce up boring HTML documents with impressive and shiny effects. By piggy-backing on the CSS selector engine, we have moved away from the complexity and inconsistencies of the DOM and made things much easier.

If you look at some of the code that has been released, though, we do seem to have taken a step backwards. In gaining easier access, we also became a bit sloppy with our code. Finding clearly structured, easy-to-maintain jQuery code is quite tough, which is why many plug-ins do the same thing. Writing one yourself is faster than trying to fathom what other developers have done

Related Products

↑ Back to top