Website optimization has three optimization bases
网站优化有三项优化基础
First, website code optimization
一、网站代码优化
Website
code optimization is a basic operation, not only from the user's point
of view, to get a good website framework structure also need to optimize
and delete the lengthy code.
网站代码优化是一项基础操作,不仅从用户的角度考虑,要获得一个好的网站框架结构也需要对冗长的代码进行优化和删除。
Search engines do not welcome js in the page, is not conducive to optimization, it is recommended to use div+css to do.
搜索引擎不欢迎页面中的js,不利于优化,建议使用div+css来做。
CSS and js code need to be merged.
CSS 和 js 代码需要合并。
If you are going to use css, try to use external calls to prevent the page from being too large.
如果要使用css,尽量使用外部调用,防止网页过大。
Reduce unnecessary server requests, merge some image sizes that do not change frequently, and compress large image loads.
减少不必要的服务器请求,合并一些不常变化的图片大小,压缩大图加载。
Clean and concise code facilitates search engine spiders to crawl and crawl your web page.
简洁明了的代码有利于搜索引擎蜘蛛抓取和抓取您的网页。
It can greatly reduce the size of the web page and improve the running speed of the website.
可以大大减小网页的大小,提高网站的运行速度。
Second, website content optimization
二、网站内容优化
You
may not understand the code to make the website more effective, but I
believe that your internal optimization of the website will be a lot
easier, and the technical content optimization will be relatively
reduced.
代码你可能不太懂让网站建设更有效,但相信你对网站的内部优化会轻松很多,内容优化的技术性也会相对降低很多。
The
content of a website is generally divided into one-time operations that
do not need to be changed after being added once, and content that can
be operated continuously, such as the main content list page and the
overview page.
网站的内容一般分为一次性操作,添加一次后无需更改,以及可以连续操作的内容,如主要内容列表页和概览页。