独立站卖家怎样提高网页加载速度?
发表于:2022-11-24 10:23:32浏览:21次TAG:
独立站卖家怎样提高网页加载速度?
1、服务器升级
当网页开始载入时,实际上是Web服务器在运行程序并打开文件。这是说,服务器的速度越快,网页的载入速度越快。
现在市场上有许多服务器是成千上万的人在共享,那么多人共享一个服务器,自然也无法保证网页的稳定快速。对于许多网站来说,选择一个稳定、安全的服务器,不仅能快速打开网页,还能从根本上提升网页加载速度。
现在可以说环新已经尝试过著名的服务器了,现阶段推荐给大家的是inmotion hosting。由于我们过去曾把服务器是bluehost的网站改为inmotion hosting,现在Google的排名和访问量都增加了50%,这足以说明SEO网页速度的重要性。
2、图片压缩
在测试网站网页加载速度上,可以说几乎所有网站的图片都需要压缩。普通的图片占到网页大小的50%-90%。下面是一些常用的压缩工具。
https://tinypng.com/
WPSMUSH插件。
WPSMUSH插件使用在Wordpress系统的网站上,WPSMUSH插件可以自动压缩图片。
Caesium
MassImage。
3、打开CDN缓存
CDN全名为Content Delivery Network,即内容分发网络。
CDN是一种智能虚拟网络,当用户想要获取网站信息时,就依靠分布在各处的边缘服务器,让用户就近地获取缓存信息。CDN可以这样说,为用户提供了更快更稳定的网络。
举例来说,您的站点面向全球,服务器选择美国,由于距离和电信供应商的原因,德国用户会觉得网页速度很慢。为使德国用户也能快速打开网站,在德国建立一个服务器节点,在德国服务器节点缓存网站内容,当德国用户打开网站时,CDN自动将用户分配到德国节点,因此网页可以快速打开。
4、减少不使用JavaScript、CSS和HTML等代码
许多站点出于效果等原因,会使用大量的JavaScript、CSS、HTML等代码。
说实话,这些代码对于谷歌的SEO优化并不重要,反而会减慢网页的运行速度。
推荐所有人对此进行简化,然后在那些未使用的页面资源中清除冗余代码。
清理这些没有使用的JavaScript、CSS和HTML代码,实际上是为了减少网络活动消耗的字节数。每个人都要记住这一点:网页越整洁和干净,网站的加速速度就越快。
基本
文件
流程
错误
SQL
调试
- 请求信息 : 2024-11-24 06:30:45 HTTP/1.1 GET : http://xn.iwdd.cn/home/article/detail/id/3425.html
- 运行时间 : 0.083725s [ 吞吐率:11.94req/s ] 内存消耗:2,041.75kb 文件加载:151
- 查询信息 : 30 queries
- 缓存信息 : 16 reads,0 writes
- 会话信息 : SESSION_ID=18bebf3b071e2d37e825a9ee2cdb4e59
- CONNECT:[ UseTime:0.000460s ] mysql:host=127.0.0.1;port=3306;dbname=xn_iwdd_cn;charset=utf8mb4
- SHOW FULL COLUMNS FROM `cms_article` [ RunTime:0.000712s ]
- SELECT * FROM `cms_article` WHERE `id` = 3425 LIMIT 1 [ RunTime:0.000337s ]
- SHOW FULL COLUMNS FROM `cms_article_keywords` [ RunTime:0.000515s ]
- SELECT `i`.`aid`,`i`.`keywords_id`,`k`.`title` FROM `cms_article_keywords` `i` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`i`.`keywords_id` WHERE `i`.`aid` = '3425' AND `k`.`status` = '1' ORDER BY `i`.`create_time` ASC [ RunTime:0.000432s ]
- UPDATE `cms_article` SET `read` = `read` + 1 WHERE `id` = 3425 [ RunTime:0.006084s ]
- SHOW FULL COLUMNS FROM `cms_article_cate` [ RunTime:0.000622s ]
- SELECT * FROM `cms_article_cate` ORDER BY `sort` DESC [ RunTime:0.000258s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 1 AND `status` = 1 LIMIT 1 [ RunTime:0.001879s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 2 AND `status` = 1 LIMIT 1 [ RunTime:0.001964s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 3 AND `status` = 1 LIMIT 1 [ RunTime:0.001704s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 4 AND `status` = 1 LIMIT 1 [ RunTime:0.001601s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 5 AND `status` = 1 LIMIT 1 [ RunTime:0.001673s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 6 AND `status` = 1 LIMIT 1 [ RunTime:0.001660s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 7 AND `status` = 1 LIMIT 1 [ RunTime:0.001720s ]
- SELECT COUNT(*) AS think_count FROM `cms_article` WHERE `cate_id` = 8 AND `status` = 1 LIMIT 1 [ RunTime:0.001522s ]
- SHOW FULL COLUMNS FROM `cms_keywords` [ RunTime:0.000505s ]
- SELECT * FROM `cms_keywords` WHERE `status` = 1 ORDER BY rand() , id desc LIMIT 20 [ RunTime:0.000387s ]
- SELECT `a`.`id`,`a`.`title`,`a`.`thumb`,`a`.`create_time`,`a`.`read`,`a`.`desc`,`f`.`filepath` FROM `cms_article` `a` LEFT JOIN `cms_file` `f` ON `a`.`thumb`=`f`.`id` WHERE `a`.`status` = '1' ORDER BY rand() , a.id desc LIMIT 10 [ RunTime:0.013524s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '2999' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000460s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '1314' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000263s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '4400' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000256s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '2377' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000233s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '3093' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000250s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '3950' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000215s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '1008' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000238s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '253' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000221s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '3337' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000259s ]
- SELECT `k`.`id`,`k`.`title` FROM `cms_article_keywords` `a` LEFT JOIN `cms_keywords` `k` ON `k`.`id`=`a`.`keywords_id` WHERE `a`.`aid` = '2191' AND `k`.`status` = '1' LIMIT 4 [ RunTime:0.000255s ]
- SHOW FULL COLUMNS FROM `cms_user_log` [ RunTime:0.000589s ]
- INSERT INTO `cms_user_log` SET `uid` = 0 , `nickname` = '游客' , `type` = 'view' , `title` = '查看' , `content` = '游客在2024-11-24 06:30:45查看了独立站卖家怎样提高网页加载速度?文章详情' , `param_id` = 3425 , `param` = '[]' , `module` = 'home' , `controller` = 'article' , `function` = 'detail' , `ip` = '3.135.206.212' , `create_time` = 1732401045 [ RunTime:0.004486s ]
0.091424s