Joined June 2012
·
Posted to
Real Javascript
over 1 year
ago
@passcod I think learning to not be wasteful in the first place isn't premature optimization. document.getElementById is only marginally faster than $('#myId') yes, but by coding more efficiently as you go your app runs better and reduces compute cycles which is definitely important on mobile devices.
Posted to
Real Javascript
over 1 year
ago
@clawfire He didn't say it was the same thing, only to not be afraid of it. People often rely too heavily on jQuery to do mundane tasks.
This seems dangerous...which makes it AWESOME ;)