joomla速度优化_如何加快Joomla网站的速度

joomla速度优化

Are you facing issues with the speed of your Joomla website? Is it taking too long to load? If so, it’s time to take some corrective actions to improve your speed before it adversely affects your business. Here are some tips that can help boost your Joomla speed.

您是否在Joomla网站的速度方面遇到问题? 加载时间是否太长? 如果是这样,是时候采取一些纠正措施来提高您的速度,以免对您的业务造成负面影响。 这里有一些技巧,可以帮助您提高Joomla的速度。

为什么网站速度很重要? (Why is website speed important? )

Speed is considered to be one of the most important aspects for the success of a website. Users prefer faster websites and will leave your website if it loads slowly. This can result in low conversion rates and poor search engine rankings – with speed now one of the parameters used by Google and other search engines for their rankings.

速度被认为是网站成功的最重要方面之一。 用户喜欢速度更快的网站,如果网站加载缓慢,则会离开您的网站。 这可能会导致转换率降低和搜索引擎排名不佳–速度如今已成为Google和其他搜索引擎排名的参数之一。

  1. 选择一个好的网络主机 ( Pick a good web host)

A good web hosting services plays a crucial role in helping you have a faster site. Take time to study different hosting providers and choose one that best suits your needs. Avoid hosts that have a reputation for being slow and which don’t provide industry standard hosting services.

优质的网络托管服务在帮助您拥有一个更快的网站方面至关重要。 花时间研究不同的托管服务提供商,然后选择最适合您的需求。 避免以缓慢的声誉和不提供行业标准的托管服务的主机

  1. 启用Joomla缓存 ( Enable Joomla Cache)

If you don’t change the content of your website frequently you can speed up your site by caching. When a web page is first loaded, caching ensures that the whole web page is copied, so that the next time the user visits, the webpage won’t need to be fully reloaded – only the previously stored copy will be displayed. This improves speed because the server does not have to send all the information needed to create the page.

如果您不经常更改网站的内容,则可以通过缓存来加快网站速度。 首次加载网页时,缓存可确保复制整个网页,以便下次用户访问该网页时,不需要完全重新加载该网页–仅显示先前存储的副本。 由于服务器不必发送创建页面所需的所有信息,因此可以提高速度。

  • 设置缓存 (To set up Caching)
  1. Go to Global configuration

    转到全局配置
  2. Go to System Tab

    进入系统标签
  3. Choose Cache Settings

    选择缓存设置
  4. Select progressive caching and conservative caching

    选择渐进式缓存和保守式缓存

Conservative Caching: It caches the data for every unique visitor. Progressive Caching: It caches and directs similar data to all visitors

保守性缓存 :它为每个唯一的访问者缓存数据。 渐进式缓存 :它缓存并将相似的数据定向到所有访问者

  • 启用Joomla Cache插件 (To enable Joomla Cache plugin)
  1. Go to extensions

    转到扩展
  2. Go to Plugin Manager

    转到插件管理器
  3. Check for System cache plugin and then enable it.

    检查系统缓存插件,然后启用它。
  1. 促进G-Zip压缩 ( Facilitate G-Zip Compression)

With G-Zip compression, the size of the webpage is reduced or ‘compressed’ before being sent to the users. The user’s browser will then perform the function of uncompressing the website. This does not take a lot of time and it is much faster compared to transferring uncompressed web pages.

使用G-Zip压缩后,网页的大小会被缩小或“压缩”,然后再发送给用户。 然后,用户的浏览器将执行网站解压缩功能。 与传输未压缩的网页相比,这不会花费很多时间,并且速度要快得多。

  • 设置G-Zip压缩 (To set up G-Zip Compression)
  1. Go to Global Configuration

    转到全局配置
  2. Go to Server option and select Server Settings

    转到服务器选项,然后选择服务器设置
  3. Select Gzip Page Configuration and enable it

    选择“ Gzip页面配置”并启用它
  1. 删除不需要的扩展名 ( Remove undesirable extensions)

To handle different functions of your website, extensions or plugins are often required. However, not all extensions that you use are well optimized. Non-optimized plugins can cause your website to slow down. When choosing a plugin don’t just look at the benefits it offers, you should also consider its impact on usability, search engines optimization and speed. Avoid loading your website with lots of extensions as more HTTPS requests are required. Always uninstall any unused extensions for better performance. You may wish to install plugins that are designed to improve speed.

为了处理您网站的不同功能,通常需要扩展或插件。 但是,并非您使用的所有扩展程序都经过了优化。 未优化的插件可能会导致您的网站运行缓慢。 选择插件时,不仅要看它提供的好处,还应该考虑它对可用性,搜索引擎优化和速度的影响。 避免使用大量扩展名加载您的网站,因为需要更多HTTPS请求。 始终卸载所有未使用的扩展,以获得更好的性能。 您可能希望安装旨在提高速度的插件。

  1. 配置您的.htaccess文件 ( Configure your .htaccess file)

.htaccess file is a configuration file that controls the directory and subdirectories of your website. Making changes to this file can improve the site speed. Some widely adopted additions that can speed up the site are:

.htaccess文件是一个配置文件,用于控制网站的目录和子目录。 对此文件进行更改可以提高站点速度。 一些可以加快站点速度的广泛采用的附加功能包括:

  • ETag –this directs browsers to get images from the local browser cache rather than from the server.

    ETag –指示浏览器从本地浏览器缓存而不是从服务器获取图像。
  • Expires headers – different expiration times can be allotted to different file types

    使标头过期–可以将不同的过期时间分配给不同的文件类型
  • AddOutputFilterByType DEFLATE – this allows the HTML source code to be minimized by eliminating empty lines, breaks and spaces.

    AddOutputFilterByType DEFLATE –通过消除空行,换行和空格,可以使HTML源代码最小化。
  1. 使用优化的图像 ( Use optimized images)

Images can take up a lot of space on a website and large images or a page with too many images can cause your website to load slowly. It is very important to use optimized images that are the right size. Make sure your images are the right dimension for your theme, are .jpeg or .png and are no more than 72dpi.

图片可能会占用网站上的大量空间,大图片或图片过多的页面可能会导致您的网站加载缓慢。 使用正确尺寸的优化图像非常重要。 确保您的图片尺寸适合主题,是.jpeg或.png且不超过72dpi。

  1. 使用CDN(内容交付网络) ( Use a CDN (Content Delivery Network))

A Content Delivery Network is an interconnected system of proxy servers distributed globally, deployed in various data centres. CDN can speed up the loading of a website as it shortens the distance between the server sending the content and the user visiting the site. If users are located far away from the server, they will receive the content from the nearest location.

内容交付网络是在全球分布,部署在各个数据中心的代理服务器的互连系统。 CDN可以缩短网站的发送内容和访问该网站的用户之间的距离,从而可以加快网站的加载速度。 如果用户远离服务器,则他们将从最近的位置接收内容。

  1. 优化JavaScript和CSS + ( Optimize JavaScript and CSS+)

When content is rendered by a browser from a website, it must process the layout information and style for a web page. Until the external scripts are downloaded, rendering will be blocked by the browser. If your site has lots of plugins and add-ons, multiple round-trips are required to bring each script before rendering occurs, thus slowing down your site. An apt solution for this problem is compressing CSS and JavaScript files. This task can be performed manually but it is time consuming. Optimizations of CSS and JavaScript files can be done with the help of T3 framework.

当内容由浏览器从网站呈现时,它必须处理网页的布局信息和样式。 在下载外部脚本之前,渲染将被浏览器阻止。 如果您的站点有很多插件和附加组件,则在渲染发生之前,每个脚本都需要进行多次往返操作,从而降低了站点速度。 解决此问题的合适方法是压缩CSS和JavaScript文件。 可以手动执行此任务,但很耗时。 可以在T3框架的帮助下完成CSS和JavaScript文件的优化。

It is very easy. Go to general settings of the framework, select the option optimize JavaScript and CSS and enable it. Eliminate the files that are to be optimized and click on save.

这很容易。 转到框架的常规设置,选择选项“优化JavaScript和CSS”并启用它。 消除要优化的文件,然后单击保存。

  1. 您是否对移动设备敏感 ( Are you mobile responsive)

All websites should now be designed to work equally as well on mobile devices as on computers and laptops, especially as Google now ranks responsive websites higher than those that don’t cater for the needs of mobile users. You can find information about how your site performs on mobile devices at Google PageSpeed Insights. It will also help you fix any issues that may arise.

现在,应将所有网站设计为在移动设备上与在计算机和笔记本电脑上均能正常运行,尤其是因为Google现在将自适应网站的排名高于那些不能满足移动用户需求的网站。 您可以在Google PageSpeed Insights上找到有关您的网站在移动设备上的效果的信息。 它还将帮助您解决可能出现的任何问题。

结论 (Conclusion)

From reading this article you should now have a much clearer understanding of how you can improve the speed of your Joomla website and why it is important to do so.

通过阅读本文,您现在应该更加清楚地了解如何提高Joomla网站的速度以及这样做的重要性。

A good web hosting services plays a crucial role in helping you have a faster site. Take time to study different hosting providers and choose one that best suits your needs. Avoid hosts that have a reputation for being slow and which don’t provide industry standard hosting services.

优质的虚拟主机服务在帮助您拥有更快的网站方面扮演着至关重要的角色。 花时间研究不同的托管服务提供商,然后选择最适合您的需求。 避免以缓慢的声誉和不提供行业标准的托管服务的主机

翻译自: https://www.eukhost.com/blog/webhosting/how-to-speed-up-joomla-website/

joomla速度优化

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值