script.js异步的 JavaScript 加载器
script.js 是一个异步的 JavaScript 加载器和依赖管理器。支持的浏览器包括:
IE 6+
Opera 10+
Safari 3+
Chrome 1+
Firefox 2+
示例代码:
// load jquery and plugin at the same time. name it 'bundle' $script(['jquery.js', 'my-jquery-plugin.js'], 'bundle') // load your usage $script('my-app-that-uses-plugin.js') /*--- in my-jquery-plugin.js ---*/ $script.ready('bundle', function() { // jquery & plugin (this file) are both ready // plugin code... }) /*--- in my-app-that-uses-plugin.js ---*/ $script.ready('bundle', function() { // use your plugin :) })
评论
HeadJS异步JavaScript加载
HeadJS,异步JavaScript加载。其最大特点就是不仅可以按顺序执行还可以并发加载js示例代码:head.js("/path/to/jquery.js","/google/analytics.
HeadJS异步JavaScript加载
0
Little LoaderIE8 JavaScript 加载器
LittleLoader是一个轻量级的、IE8+JavaScript加载器特点:脚本加载后可靠回调非常非常小
Little LoaderIE8 JavaScript 加载器
0
Lozad.js高性能纯 JavaScript 懒加载器
Lozad.js是一款基于IntersectionObserverAPI的高性能、轻量级(〜0.5kb)和可配置的懒加载器,纯JavaScript,无依赖,可用于延迟加载图片、iframe、广告、视频
Lozad.js高性能纯 JavaScript 懒加载器
0
DKAsyncImageViewiOS 异步加载
DKAsyncImageView是Swift编写的NSImageView的子类,用来异步加载远程图片。特征只需1行代码即可将图像从Web异步下载到DKAsyncImageView设置要显示的“占位符图
DKAsyncImageViewiOS 异步加载
0