Archive for the “javascript” category

Concat js files on demand

by Patrick on February 16, 2012

At connectiv! we always have a load of JavaScript files to be loaded for some interactive stuff. Sometimes it’s so many that the amount of HTTP requests slows down the pageload. With the help of a small PHP script we reduced the number of HTTP requests to one. What the script does is it reads (…)

Object-oriented programming in JavaScript

by Patrick on February 3, 2012

Although JavaScript is not an object oriented language, you can use some OOP like paradigms to structure your code. This tutorial is meant to be introductory. After reading this, you will know the very basics, a point to start and go on if you like. JavaScript is so called “prototype based”, which  basically means that there (…)

Faster jQuery

by Patrick on December 25, 2011

Although jQuery gets faster with almost every release, there are a few things to remember when working with it. Scott Kosman posted a nice roundup on writing faster jQuery code on 24ways.org. Some of those tips are already in use in my day-to-day code, but not all of them.

Twitter Bootstrap

by Patrick on October 30, 2011

I found a really interesting thing for, well, bootstrapping web projects: Twitter’s Bootstrap. One problem I have every time I start a project is the styling. That basic stuff, like typography, margins here, paddings there. Things that don’t really add up to what the project is actually about. It feels felt like wasting time. With Bootstrap, (…)

jQuery.inlineComplete – Inline auto-complete for text input (2nd Update)

by Patrick on February 28, 2011

UPDATE NO. 2: Plugin page is now online! Yay, my first jQuery post. jQuery.inlineComplete is a plugin which auto completes your typing inside the input text field, just like you see it in Google Chrome’s Omnibar. Currently, this isn’t even tested in other browsers than Firefox 4 RC1, but I want this to be usable (…)

Dynamic script loaders

by Patrick on December 28, 2010

Recently I ran over HeadJS. I never heard of such script loaders before. Although I read that Google offers a JavaScript interface to load scripts from their CDN, I didn’t think of reducing the page load time in the first place. Today I checked back to the website just to see how things are going. (…)