![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
Out0fRange
这个作者很懒,什么都没留下…
展开
-
js(es5)实现图片懒加载
介绍这是一个用原生JavaScript(es5)写的图片懒加载插件(模块),并且它足够小,源文件只有4kb,压缩后只有2kb。在长页面场景中,使用图片懒加载是优化网站初始加载速度的一种常见方案。直到用户划到之前不加载可见视图外的图片可以有效减少资源请求链接,给其他必要资源如(js)加载腾出位置。用法获取--yarn--yarn add lazyload-es5--git--git clone https://github.com/1esse/lazyload.git--npm--npm原创 2020-08-26 14:57:55 · 259 阅读 · 0 评论 -
js自动打字--autotypejs
autotypejsuse for typing automatically.介绍使用原生JavaScript(es6)实现的自动打字效果。效果图示例代码(vue):<template> <div class="type-container"></div></template><script>import AutoType from "autotypejs";export default { name: "AutoT原创 2020-08-13 17:19:47 · 352 阅读 · 0 评论