Danh mục sản phẩm

Danh mục các hãng xe

Hỗ trợ khách hàng

 

Kinh doanh:

Tel: +84 4 39844705

-----------

SaleOnline:

Tel: +84 4 39844916

-----------

Kĩ thuật:

Tel: +84 4 39847471

-----------

Kế toán:

Tel:+84 4 22148644

-----------


Xem chi tiết...

Đối tác

logo

Cty-SHB

jenka-media

noithatoto-cartoyvn

Tìm kiếm sản phẩm: Giá từ: 100 đến 1 triệu   /  1 đến 2 triệu  /  2 đến 5 triệu  /  trên 5 triệu  /  trên 10 triệu
Trang chủ Tin tức Kĩ năng lập trình Sử dụng GZIP trong template để tăng tốc cho Joomla
Sử dụng GZIP trong template để tăng tốc cho Joomla
Sử dụng GZIP trong template để tăng tốc cho Joomla PDF. In Email

Compression is a quick and efficient way to save your server bandwidth and speed up your website load time. By adding a piece of PHP code to the top of your Joomla generated Web pages, you can instruct the Web server to compress files for transit to your visitors’ Web browser. This is especially useful for text-heavy Web pages that are over 100K in size.

To Optimize Your Joomla Site with GZIP
Compression

Go to Extension >>Templates Manager
Open your default template and click on Edit Html button

Add the following code to the very top and above the DOCTYPE:

<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], ‘gzip’)) ob_start(“ob_gzhandler”); else ob_start(); ?>

Done.

Note: make sure you have GZIP Page
Compression
turned on in Joomla Global Configuration>>Server

This will decrease website
load time
significantly for sites that are larger than 100k. For sites that are less than 100k in size, it may not have too much affect on page
load time
.