What is the best way to download files - torrent or from file hosting?
Often there are disputes on the Internet about how to download files better - using a torrent tracker or file sharing. Let's figure out what a torrent tracker is. This…

Continue reading →

How to choose the main theme of the blog?
After writing a couple of articles for the ShkolaZhizni.ru site, I thought: “Well, since I’ve become a“ writer ”, would I get my own blog on the Internet?” Write my…

Continue reading →

What is a tablet for?
What is a tablet for? In order to “move away” from real life further and further. If earlier we were lost in the wilds of the Internet only in the…

Continue reading →

How to speed up your site?

But what if you just need every element of your web pages, every picture and every java-script is expensive. That’s about it, namely about ways to speed up, optimize your site, I suggest today to talk.

In my last article on this topic, we determined that the duration of loading the pages of your site in the browser is determined by the number of requests that it generates and the duration of the execution of these requests. We will not delve into this topic again, but proceed directly to tips on speeding up your site. These tips are especially suitable for owners of portals created on the basis of CMS, since the problems of fast page loading are most often found just on such sites. So let’s get started:1 tip. Style sheet optimization
Style sheets are very easy to use and should be used on all portals without exception. It often happens, especially when using CMS, that there are several such style sheets, and, therefore, the browser sends a request for each, which takes more time.

In this regard, the first tip: merge all existing style sheets into one file. In addition, this resulting file can and should be optimized. Delete unnecessary lines, spaces, reduce color information – for example, replacing the white color in the spelling “#ffffff;” with the shorter “#fff;”, which in the end will affect the size of the received file and speed up the process of downloading it. It’s best to include style sheets in the page code in the HEAD tag area, that is, at the top of the page.

2 tip. Java script optimization
When using java scripts, you often have to connect the appropriate libraries for them to work correctly. Often these libraries are loaded directly from the site’s files, while you can load them in a more compressed form from specialized sites on the Internet, for example, from google services.

In addition, the codes of the scripts themselves, however, like the connection strings of their libraries, unlike style sheets, should be placed at the very end of the pages of your site. This is due to the fact that the browser, encountering java code in its path, stops loading the page until it processes this code completely. In addition, as is the case with style sheets, script files are also worth combining. Here you will come to the rescue of special services that will perform the merger quickly and efficiently.

3 tip. Use css sprites
In addition to the pictures that are loaded dynamically on your site, for example, during the execution of php code, there are also many pictures that are declared in the css file of your site. A separate request is also generated for each of them.

But in the case of applying css-sprite technology, the whole set of requests for pictures can be replaced with one single one. The essence of the method is that only one picture is created, on which several, usually up to 20, which were previously loaded individually, are placed in certain positions with previously known coordinates.

And now instead of lines with connecting each of the pictures, each time you write the same line with a call to one common line created by us, and by specifying certain indents, or more simply, coordinates, specify the location of that particular picture that you need. Thus, we are able to reduce the number of browser requests from 20 to 1!

4 tip. Use the technology of caching pages on your site
If your resource does not imply a constant change in content, you just need to use page caching technology. In this case, when the user repeatedly accesses the pages of your site, the browser no longer needs to send requests to the server each time, but just ask for information in the cache, which will significantly reduce the loading speed of your pages.

Here, perhaps, are the main methods for optimizing a resource in order to accelerate it. In addition to the above, there are many other ways, but about them, if interested, we will talk next time.

And let the pages of your site load with lightning speed!

Are there many differences between different navigation programs?
The market for navigation software is full of programs for various operating systems. It is believed that the versions of one program for different platforms are absolutely identical. But it…


How to speed up your site?
But what if you just need every element of your web pages, every picture and every java-script is expensive. That's about it, namely about ways to speed up, optimize your…


What can Picasa do?
The main advantage of Picasa is the organization of thousands and thousands of photos. There are several “layers” of organization. The simplest is the folder. This is a duplication of…


What should we build a WAP?
But do not send you in three letters? On WAP. With joy. On any of the still small WAP sites. And while there is still little competition in this area…