RailsCasts Pro episodes are now free!

Learn more or hide this

Rodrigo Dellacqua's Profile

GitHub User: rgoytacaz

Comments by Rodrigo Dellacqua


Also, remember to do not use, jQuery $(function(){}); (document ready), just leave your js file at the bottom, which is the best practice.


.on() is the preffered way to add events on new elements.

Ppl used to rely on .live() which would parse the whole page for all elements matched in the selector. This was causing heavy client side cpu usage.