3 ms·
jQuery encouraged that behavior everywhere. The constant traversing of the DOM over and over and over again to re-select jQuery DOM objects. Sure you can write
by whyileft 10y ago
jQuery encouraged that behavior everywhere.
The constant traversing of the DOM over and over and over again to re-select jQuery DOM objects. Sure you can write that correctly. But I rarely if ever saw anyone to the point that when I would, most developers who typically worked in jQuery would be confused.