首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > jQuery插件延迟加载(按需)脚本和样式

jQuery插件延迟加载(按需)脚本和样式

资 源 简 介

$.plugin is a jQuery Plugin that allows you to better manage the different plugins you use in your website or web application. This is especially useful if you use a number of plugins each with its own .js and .css files. It is even more useful if not all plugins are needed for each page. Performance Improvements Users will only download scripts and styles that are required (accoding to selectors you specify) Page Caching - Scripts and styles are only downloaded once Session Caching - Scripts and styles are stored in browser"s sessionStorage to reduce http requests (Firefox 3 only, for now) $.plugin itself is just 10KB uncompressed, 4KB minified, and 3KB compressed Sample Code Define your plugins $.plugin("tabs",{ files: ["../styles/style.css", "../scripts/jq.tabs.pack.js"], selectors: [".nav-tabs"], callback : function

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 11 1小时前 成为了本站会员

  • 开心快活人 4小时前 成为了本站会员

  • 晋财 5小时前 成为了本站会员

  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

0.229265s