March 31, 2011

Just The Code: ScriptTimer class

Today I found myself faced with a page that took 22 seconds to load (!) and no explanation why. So, I created the ScriptTimer class below to help me figure out where the time sink in my code was. I was able to find it, thanks to this class, and fix the problem ASAP (the page now loads in <2 seconds).

Post a Comment