Re: The state of Prototype's JavaScript.

From: Date: Fri, 30 Mar 2012 06:28:11 +0000
Subject: Re: The state of Prototype's JavaScript.
References: 1 2 3 4  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13293@lists.php.net to get a copy of this message
On Fri, Mar 30, 2012 at 7:11 AM, Stewart Lord <stewey@ambitious.ca> wrote: > > On Mar 29, 2012, at 9:20 AM, Levi Morrison wrote: > >> I don't mean to offend the author(s) because the biggest thing is that >> it works. Well done on that part.  However, the whole file is filled >> with this stuff and worse.  They regularly find classes, which is an >> expensive operation, and then don't save the results to a variable to >> reuse again in the same function. > > > Not to say that the JS doesn't deserve some clean-up, but you really shouldn't worry > about performance. Finding based on classes is generally a good practice. Same goes for using a > framework like jQuery. It helps avoid browser issues, etc. > > Last time I checked JS was really fast. Like 10 times faster than PHP fast. For the sorts of > things the prototype site is doing it should be a non-issue. > +1 > Stew > -- > PHP Webmaster List Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.webmaster (#13293) next »