document - Tidying up jQuery -
I have a page that uses a lot of code, but it is becoming unbearable. I want to be able to put the related parts in separate .js files and organize it to include in a script tag on the page.
I think that by using them as a jQuery plugin, then able to do this again by using $ (document). plugin_name (); on the page.
Is it OK to do it or is there a better / easy way?
Thanks
If you import .js files, Even shenanigans of type do not have to be done in the correct order, it will work as if it were in a file $ (document) .ready (function () {});
Can use blocks without problems in any file.
Comments
Post a Comment