Comments (3)
2.模块化
在面对对象编程里叫做单一职责原则,一个模块只负责一个功能。
from font-end-tips.
3.页面卡顿解决方案
from font-end-tips.
4.页面打开速度增强
避免head标签JS堵塞
1.所有放在head标签里的CSS和JS都会堵塞渲染,如果这些CSS和JS需要很久时间加载和解析,那么页面就空白了。
方法: 常用的就是放在body后面,第二个就是给script增加defer属性来延迟加载,这是HTML5新属性,有了这个属性就变成异步加载了我写的script不同属性加载顺序图)
2.不要放太多base64在css里面
3.使用响应式图片
from font-end-tips.
Related Issues (17)
- CSS零碎知识点
- JS知识点 HOT 7
- 从输入URL到按下回车后后浏览器加载都发生了什么?
- 小程序的一些知识点和坑 HOT 11
- 微信小程序开发入门与实践 笔记 HOT 3
- PC端用Vue-element-template搭建的后台管理系统 HOT 9
- vue-admin-element后台管理系统登录模块分析
- CSS世界
- JS基础知识 —— 循环 for 、switch、for-in、for-of HOT 2
- JS基础知识 —— 值的比较 HOT 1
- JS基础知识 —— 数据类型 HOT 5
- HTTP —— 基本知识
- NodeJS —— 基础知识
- JS 基础知识 —— 错误处理
- DOM —— 基础 扩展 HOT 4
- JS基础知识 —— 事件 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from font-end-tips.