Hey,
I am reading about js, jquery & dom from few weeks but today i read a Tutorial in which he uses plugin for delay & ease.Is it a good practice to u开发者_Python百科se plugin?
Addition to it :
The delay.js code is finished between four to five lines.
Maybe we could also just write it.Please help me to understand it.
Thanks.As long as they add value to your work, I guess there's nothing wrong of use of plugin in js.
Look at the jquery's Summary and Best Practises.
See this below links. They'll clear your doubt.
- Plugin in js - a good practise ?
- Too many jquery plugins ?
Yes, plugins are an important part of jquery. You can find most of them in http://plugins.jquery.com/
If you are worried about the overhead of loading extra files, consider using a content delivery network such as Google Libraries (http://code.google.com/apis/libraries/).
They will take care of the heavy lifting for you, and you increase the odds of a visitor already having a cached copy.
The only downside is the slight performance hit in loading one extra URL.
精彩评论