Re: The state of Prototype's JavaScript.

From: Date: Fri, 30 Mar 2012 06:11:28 +0000
Subject: Re: The state of Prototype's JavaScript.
References: 1 2 3  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13292@lists.php.net to get a copy of this message
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. Stew

« previous php.webmaster (#13292) next »