前端优化的一些技巧

1.放在外部文件 优势:
  A.提高了js/css的复用性
  B.减少了页面体积
  C.提高了js/css的可维护性
内部写法 优势:
  A.减少页面请求
  B.提高渲染速度
写在页面内
  A.只是应用于一个页面
  B.不经常被访问到
  C.脚本和样式很少 几十行的情况
这两条 看情况而定
2.script写在底部 防止不先加载css而出现页面空白的情况
3 少写或者不写css 表达式 css Expression
4.使用cdn架构 花钱 提高速度
5.把css放在页面最上面 先加载页面

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment