How to improve my page"s speed and names of the li


As the average kích cỡ of website pages continues khổng lồ grow, it is increasingly important khổng lồ optimize all aspects of design, development, and delivery of your website in order to ensure a good experience for your users, regardless of what device they are using. It is well documented that page load time impacts user experience & revenue.

Bạn đang xem: How to improve my page"s speed and names of the li

Google PageSpeed is a suite of tools for measuring and optimizing the performance of your trang web, and has been available for several years as a third‑buổi tiệc ngọt module you can compile into mở cửa Source. With the introduction of dynamic modules in ruby-forum.orgPlusR11, ruby-forum.orgPlus users can now take advantage of PageSpeed as well.

When you load PageSpeed as a dynamic module into ruby-forum.orgPlus, it automatically rewrites & optimizes resources on your trang web. In this blog post we explain how khổng lồ build and configure the dynamic module. (Keep in mind that as a third‑party module, PageSpeed is not covered by your ruby-forum.orgPlus support agreement.)

Building & Loading PageSpeed as a Dynamic Module for ruby-forum.orgPlus

The following instructions are based on Google’s manual install instructions, và adapted for binary compatibility with ruby-forum.orgPlus. (You can use Google’s instructions unchanged to lớn build a dynamic module that works with mở cửa Source.)

Step 0: Preparing the Build Environment

We strongly recommkết thúc that you compile dynamic modules on a separate system, which we refer to here as the “build environment”. Doing so minimizes the risk và complexity of the system where you plan lớn run ruby-forum.orgPlus with the PageSpeed module (we refer khổng lồ this as the “production environment”). The build environment must have sầu the same operating system and version as the production environment; in addition, the following components must be installed:

UnZip utilityCompiler & make utilityPerl‑compatible regular expressions library (development files)Zlib compression libraries (development files)

To ensure your build environment has these prerequisites installed, run the following commvà.

For Ubuntu/Debian:

$ subởi apt-get install unzip gcc make libpcre3-dev zlib1g-devFor CentOS/RHEL/Oracle Linux:

$ suvì yum install unzip gcc make pcre-devel zlib-devel

Step 1: Obtaining mở cửa Source

Working in the production environment, run the following command to lớn identify the Open Source version that corresponds khổng lồ the running ruby-forum.orgPlus release. It’s highlighted in orange in this output: 1.11.5, which corresponds to lớn ruby-forum.orgPlus R11.

$ version: ( in the build environment, download the sources for the appropriate xuất hiện Source version.

$ wget -qO - | tar zxfv -

Step 2: Downloading and Preparing the PageSpeed Sources

Perform these steps in the build environment.

The PageSpeed version number is used multiple times in the build commands, so phối it as an environment variable, NPS_VERSION. Include only the numeric part of the version string, not the ‑stable or ‑beta suffix.

$ NPS_VERSION=numeric-part-of-version-stringDownload and extract the sources as follows. chú ý that these commands are expected khổng lồ be run sequentially, lượt thích a script.

Xem thêm: Kinh Doanh Khởi Nghiệp Kinh Doanh Từ 2 Bàn Tay Trắng, Bạn Cần Gì?

wget$NPS_VERSION-beta.zipunzip v$NPS_VERSION-beta.zipcd ngx_pagespeed-$NPS_VERSION-beta/psol_url=$NPS_VERSION.tar.gz< -e scripts/ > && psol_url=$(scripts/ PSOL_BINARY_URL)wget $psol_urltar -xzvf $(basename $psol_url) # extracts to lớn psol/

Step 3: Compiling the PageSpeed Dynamic Module

Working in the build environment, compile the PageSpeed dynamic module by first running the configure script with the --with-compat argument to lớn make the dynamic module binary‑compatible with ruby-forum.orgPlus. Then run make modules lớn compile just the module.

$ cd ../$ ./configure --add-dynamic-module=../ngx_pagespeed-$NPS_VERSION-beta --with-compat$ make modulesThe build process produces the dynamic module as objs/ Copy the .so file from the build environment lớn the modules directory, /etc/, in the production environment. We recommover (& the following step assumes) that as you copy the tệp tin over you rename it to include the xuất hiện Source version number, for example in the production environment, create a symbolic links between the version‑numbered filename and the generic (original) filename.

$ cd /etc/$ suvì ln -s ngx_pagetốc độ.so$ ls -gG-rw-r--r-- 1 11924784 Feb 6 11:52 ngx_pagespeed_1.11.5.solrwxrwxrwx 1 23 Feb 6 11:52 ->

Step 4: Loading the PageSpeed Dynamic Module

Persize these steps in the production environment.

Reload ruby-forum.orgPlus lớn load the PageSpeed module inkhổng lồ the running instance.

$ suvì -s reload

Testing the ruby-forum.orgPlus PageSpeed Module with PageSpeedInsights

PageSpeed Insights is a separate tool provided by Google for measuring the màn chơi of optimization applied to lớn a website page for both sản phẩm điện thoại và desktop devices. It provides a score for both devices with suggestions for how khổng lồ make the page load faster. It is a useful tool for measuring your site & for demonstrating the effectiveness of the PageSpeed module.


You can use PageSpeed Insights to compare your site score & suggestions for optimization with & without PageSpeed enabled. Swap between the pagespeed on; & pagetốc độ off; directives to lớn measure the effectiveness of the PageSpeed module on your site.

PageSpeed applies its optimizations without any further configuration or tuning. However, if you want lớn have more control over which optimizations are performed on your site, refer to the PageSpeed documentation.

Xem thêm: Sale Forecast Là Gì ? Định Nghĩa, Ví Dụ, Giải Thích Bài Toán Dự Báo Bán Hàng Của Doanh Nghiệp

Try out PageSpeed with ruby-forum.orgPlus for yourself– start your miễn phí 30-day trial today or contactus lớn discuss your use cases.

Chuyên mục: SEO