jarrin
News
Interests
My House
Personal
Feedback
Garage Sale
Donate


Search just this section


 
Like Grains of Sand
"u were in my dream last nite. we were sitting in the back of a moving car and you told me with fear in your voice, "andrea. i don't think i want to build robots anymore. i'm afraid they will kill me"."
- Andrea
"I can't tell if you're joking or insane, [jarrin]. This is a common problem."
-Hedgie



Vaxjo: Well... that turned out to be a waste of my time.
Vaxjo: Well... that turned out to be a waste of my time.

Vaxjo: I has a lolli. It being green.
Vaxjo: I has a lolli. It being green.

Vaxjo: This is the future? Really?
Vaxjo: This is the future? Really?

Temperature

National Security Letter
I have not received a National Security Letter.


Journal
jQuery Selector Performance
I just got done spending a few hours debugging some slow jQuery and thought that I should share the summary of my findings with the world at large. Always try to use an id or class designation when selecting DOM elements. For example, on a page with about a megabyte of HTML I had this selector:
var firstRow = ("#aspxGrid table tr td table tr:first");
That one line took nearly eight seconds to execute. I poked around in the HTML a bit and was eventually able to change it to (approximately):
var firstRow = ("tr#_DXHeadersRow");
That line now executed in just one millisecond. Say it with me, "just one millisecond". I hope you've learned something today.