RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: rgoytacaz
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.
Thats why paypal provides a sandbox :)
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.
Thats why paypal provides a sandbox :)