Skip to content Skip to sidebar Skip to footer

How To Extend Jquery From Cdn?

I'm currently using a jQuery resides on my own FTP together with other web files. I am thinking of using a jQuery from CDN since suggested by the YSlow. The question is, how can I

Solution 1:

You use a separate file with your own functions in it.

Any extension to jQuery should probably be done through its own plug-in mechanism.

Solution 2:

Whether the jQuery library comes from your own server or a CDN, you'll add new functions in the same way.

jQuery.fn.yourCustomFunction = function(){};

This will be done inside your own Javascript files and you should never be editing the actual jQuery library file.

Post a Comment for "How To Extend Jquery From Cdn?"