Improving an accordion script - Part 3

In this final post on improving a basic accordion script, we will be taking our final code from part two, and updating it to a be a jquery plugin. You can check out part one if you want to start at the beginning to see how we got here. So…

Super Simple Sublime Text 3 Setup

This is a super-simple, super-basic Sublime Text 3 setup. It goes through downloading of the application, installing Package Control and a few basic Packages. It does not, go through a ton of "How-To"'s. Download and Install Sublime Text 3 You can download from the Sublime Text download page. Once…

JavaScript Prototype add-ons

I know a lot of people disagree with adding onto the prototype for built in JavaScript objects but... I'm not one of them. I find them very useful. In the below examples the code will only be executed if there is not an existing method. Anyway, if you are interested…

Improving an accordion script - Part 2

In part one of this, I took and existing javascript file and did some quick updates and optimizations to improve the overall performance of the script. We reduced the number of selectors and removed the animation functions and put those into the CSS. My teammate and I thought it would…

Improving an accordion script - Part 1

I was sitting in my office at work a while back, and a co-worker came by and asked me to take a look at some of their jQuery code. He had written some fairly simple code to create an accordion effect for a FAQ (Frequently Asked Questions to those who…

What's that smell? That guy's code

Today I was going through my usual news feeds and was linked to an article about creating tabs that load in content via AJAX. I clicked the link and started reading the article and could not believe what I saw. This person was putting some of the least thought-out code…