减少页面加载时间
It is a common scenario where even the regular visitors tend to get frustrated with a webpage which takes longer to load. By decreasing the website load time, businesses can ensure that the visitors are served well and increase the chances of getting potential customers and repeated visitors as well. The following should help you decrease the Website Load Time and serve the web-pages faster.
这是常见的情况,即使是普通访问者也往往对加载时间更长的网页感到沮丧。 通过减少网站加载时间,企业可以确保访问者得到很好的服务,并增加获得潜在客户和重复访问者的机会。 以下内容可以帮助您减少网站加载时间并更快地提供网页。
![Average Page Load Time decrease_page_load_time](https://i-blog.csdnimg.cn/blog_migrate/82ff0bf6866d2807a8c03308f1495155.gif)
Making use of optimized images
利用优化的图像
You can find the required tools in your graphic editing program. Those tools can help you with optimizing your website images to best suit the online use. The tools hold the capability to compress the images to almost eighty percent without disturbing its quality but decreasing the file size.
您可以在图形编辑程序中找到所需的工具。 这些工具可以帮助您优化网站图像以最适合在线使用。 这些工具具有将图像压缩到几乎百分之八十的功能,而不会影响其质量,但会减小文件大小。
Use of static images instead of animations
使用静态图像代替动画
In comparison to animated videos and graphics, static images take remarkably less time to load. The use of static images within your webpages can make the page lighter hence making it faster to be loaded in the browser.
与动画视频和图形相比,静态图像的加载时间明显减少。 在网页中使用静态图像可以使页面更亮,从而可以更快地将其加载到浏览器中。
Large images to be replaced with thumbnails
大图像要用缩略图替换
Thumbnails are nothing but a shrunken versions of your images. If you take an overview, at most places large images are not at all essential. If you still insist on keeping the large images, you can provide an option to users where they can click on the thumbnail to view a larger image. This technique would further add to your efforts of increasing the speed of your website.
缩略图不过是图像的缩小版本。 如果进行概述,则在大多数情况下,大图像根本不是必需的。 如果您仍然坚持保留较大的图像,则可以向用户提供一个选项,使他们可以单击缩略图以查看较大的图像。 此技术将进一步增加您提高网站速度的努力。
Making adjustments to the tables to load the webpages gradually
调整表格以逐渐加载网页
Divide the web-page content in smaller chunks of data to help the page load faster. This should keep the visitor interested until the rest of the page gets loaded.
将网页内容划分为较小的数据块,以帮助更快地加载页面。 在页面的其余部分加载之前,这应该使访问者保持兴趣。
Use of common files for images
使用图像的通用文件
This actually helps in two ways. One that, it eliminates the possibility of image duplication. Secondly, the users web browser is able to find the images with minimum efforts which in-turn results in faster page loads.
这实际上有两种帮助。 其中之一是,它消除了图像复制的可能性。 其次,用户的网络浏览器能够以最小的努力找到图像,从而导致更快的页面加载。
Check the Web Hosting server hosting your website
检查托管您网站的Web托管服务器
There might be occasions where the server on which your website is hosted, is slow. So it is a good practice to monitor the site speed on a regular basis. This might be a pointer for either upgrading your web hosting package or making a switch to other host who offers good services.
在某些情况下,托管您网站的服务器速度很慢。 因此,最好是定期监视站点速度。 这可能是升级Web托管程序包或切换到其他提供良好服务的主机的指针。
Assigning Limits to database queries
为数据库查询 分配 限制
This does not mean that you need to control the total volume of queries or calls to a database. You only need to assign limits to the total number of queries to be allowed to any particular webpage. Keeping a to-the-point information on the index page, and having an easy navigation structure can help your index page to be accessed real fast.
这并不意味着您需要控制查询或对数据库的调用的总量。 您只需要为允许访问任何特定网页的查询总数分配限制。 在索引页面上保留最新信息,并具有简单的导航结构可以帮助您快速真正地访问索引页面。
Search engines too have started giving more priority to the website’s load time, however, a slow website means a chance of a potential loss of sales, whereas, a website with a faster load percentage would mean, the visitors can go through the information quickly. This would indeed give better chances of conversion. It is a good practice to check the websites load time on a regular basis in various browsers of-course.
搜索引擎也已经开始开始优先考虑网站的加载时间,但是,网站速度慢意味着有潜在的销售损失的可能性,而网站加载率越高意味着访问者可以快速浏览信息。 确实,这将提供更好的转换机会。 最好在各种浏览器中定期检查网站的加载时间。
翻译自: https://www.eukhost.com/blog/webhosting/how-to-decrease-web-site-load-time/
减少页面加载时间