javascript - Is there some issue doing it in jQuery? -


Can I do this without worrying about performance problems?

  $ (document) .ready (function () ((function_new_selector) {new_selector ('classname'). Feedin ('sharp');}) ($);}) ;   

or

  $ (function () {(function (new_tutorial) {new_selector ('classname'). FadeIn ('fast'); }} ($);});   

Thanks.

Maybe this could be a stupid question but I like to worry about performance.

There is no (noteworthy?) Difference in speaking performance

If you add a function , Then it will only be proxied for .ready () method.

If you worry about performance, then .class selector.

Comments