Managing jQuery Plugins

前端 未结 6 1110
隐瞒了意图╮
隐瞒了意图╮ 2021-02-01 07:15

Often, when working with jQuery, the need arises to include multiple plugins. This can quickly become messy work, especially when some plugins require additional components (ima

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-01 08:12

    You could utilize the Google CDN (Content Delivery Network) for more popular plug-ins. Google keeps it up-to-date, you can quickly choose/switch between versions, and you also get the benefits of caching from other websites that use CDN.

    Example for jQuery:

    
    

    And, if you want to use a higher version automatically, change the version to 1.4 (automatic 1.4.x updates) or even 1 (automatic 1.x.x updates). Unfortunately not all plug-ins are available, but many of the major ones are.

提交回复
热议问题