微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

getPlugin (aka lazy loader)

程序名称:getPlugin (aka lazy loader)

授权协议: 未知

操作系统: 未知

开发语言:

getPlugin (aka lazy loader) 介绍

getPlugin is aimed at improving performance by keeping unnecessary scripts
and styles out of the DOM. The goal is to keep loading times as minimal as
possible.

This is especially useful if your website or application uses a large number
of plugins (and other scripts). It is even more useful if not all plugins are
needed whenever your page loads.

$.getPlugin(plugin,[check],[data],[callback])

Functionality and usage are very similar to the $.getScript method of jQuery,
with a few enhancements.

The difference is that:

1. $.getPlugin makes sure that your functions are called after the plugin(s)
have loaded
2. You can also define the style sheets (CSS) that go along with each plugin
3. It’s easier to import multiple plugins and styles
4. It keeps your code tidy and understandable

It’s as simple as that.

Download Latest Version of
getPlugin
(080405), as of
05 April 2008.

getPlugin (aka lazy loader) 官网

http://plugins.jquery.com/project/getPlugin

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐