apreload
a preload component
Last updated 2 years ago by jayzou .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apreload 
SYNC missed versions from official npm registry.

preload

静态资源预加载组件

features

  1. 每个模块均可单独引入
  2. 支持amd、cjs、es、iife、umd多种形式使用
  3. 打包三个模块压缩之后整体大小小于4KB

图片预加载
CSS加载
font加载

install

npm install apreload

usage

可以用ES6 模块的形式引入

import Preload from 'apreload' 

也可以直接使用CommonJS方式引入

var Preload = require('apreload');

或者直接引入到HTML里面也可以

<script src="https://unpkg.com/apreload@2.2.4/dist/iife/preload.js"></script>

dev

git clone https://github.com/jayZOU/preload.git  
cd preload  
npm i  
npm run dev //or npm run build  

change log

2.1.2
2.0.1

Current Tags

  • 2.2.6                                ...           latest (2 years ago)

5 Versions

  • 2.2.6                                ...           2 years ago
  • 2.2.5                                ...           2 years ago
  • 2.2.4                                ...           2 years ago
  • 2.2.3                                ...           2 years ago
  • 2.2.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 0
Last Month 1
Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |