There are four simple ways to increase the page loading speed ., Easy to use
1. Remove unnecessary JS and CSS references from the page.
2. Reduce the number of page connections, that is, reduce the number of requests to the server.
3. Configure GZIP to compress the page and speed up the transmission of the page from the server to the browser.
4. Check whether indexes are used in the SQL query on the page.
These four are my experience and are quite common methods. Generally, the speed of page loading is accelerated by around 30%.
How can I improve the webpage loading speed through code optimization?
. But for most common webmasters, how can we make reasonable optimization with limited resources to increase the loading speed of webpages? There are actually many ways to increase the loading speed of website pages. In this article, we will discuss the following four aspects and share some common tips for improving the loading speed of web pages: i. Web page compression technology for web page compression, I believe all webmasters are familiar with it. It mainly enables the server Gzip, compresses the page Gzip, reduces the volume of elements, and thus reduces data transmission, in this way, the webpage loading speed is improved. Ii. CSS optimization (1) the css position indicates that if the CSS position appears, the page needs to be re-rendered and the opening speed is affected. All css-defined code should be placed before the website. (2) Some images on the css sprite Technology website can be merged using the css sprite technology to reduce the number of loading requests, thus improving the loading speed of webpages. (3) css code optimization simplifies css code by shorthand for css Code attributes, removing redundant structures (frameworks), resetting (resets), and other methods and techniques, reduce the size of the css file. Iii. JS optimization (1) When JS is optimized in the js webpage code, it is recommended that JavaScript be placed at the end of the page to speed up page opening. (2) Merge JavaScript files under the same domain name to increase the speed of opening a webpage by reducing the number of network connections. (3) LazyLoad (delayed loading) Lazy Load is a jQuery plug-in written in JavaScript. It can delay loading images on long pages. Images outside the visible area of the browser are not loaded until the user scrolls the page to their location. For example, I use the delayed Loading Function of this image in my blog. 4. cache static resources by setting browser cache, cache infrequently updated files such as css and js on the browser side, so that when the same visitor accesses your website again, the browser can obtain css and js from the browser's cache, instead of reading them from your server every time, which speeds up website opening to a certain extent, it can also save your server traffic. Add to favorites
Improved the download speed of thunder (Simple and Easy)
The answer is that the simple modification makes thunder download four times faster than others.
Thunder has a special skill: Searching for downloadable resources. When you start thunder to download resources, it will download resources by searching for other available resources with the same name (such a strong function, I do not know why the thunder official publicity ). The default thread of available download resources for thunder search is 5. If we change this value to a value greater than 20, it means that you have four times more download resources than other leiyou! Go to the Thunder installation directory "X: \ Program Files \ Thunder \ Program" ("X" is the drive letter of the Thunder's partition) and find "download. cfg file, and then use NotePad to open the file.
Open "download. after the cfg file, press the Ctrl + F key combination, enter [p2s] in the pop-up search window, and click OK to find the string "[p2s]".
We just want to write articles in this place. In the "[p2s]" line, press enter and enter "thread_num = 20", which means to change the default search alternate download resource of thunder to 20.
Tip: by default, the maximum number of threads for searching for alternate download resources by thunder is 60, so you cannot enter a value greater than 60. However, we do not recommend that you change this value too large, which requires a high level of network bandwidth and machine configuration, an excessively high value pair will bring a relatively large load to bandwidth and machines.
Some may ask, why not use the method of adding a download thread to search for alternate download resources? Let me give you a simple example. Suppose a server sets a channel with the maximum number of connections to 5 for each connected IP address (that is, the download thread ), even if you set the download thread to 20, the server only opens five channels for you. Searching for alternate download resources is different. When you get five threads on this server, Thunder will search for resources of the same name on other servers, thunder will start downloading on the searched server at the same time. After such a small modification, your download will be truly and effectively accelerated.