Haidian website construction --10 ways to design websites for mobile speed
Have you done a movement speed test recently? How does your website rank? A slow website will deter mobile users. Ideally, you want your design to be able to quickly load 4G users on your phone just like desktop users on Wi Fi. (This is a considerable requirement, but there are some things you can do.)
First, test your movement speed. Then use these techniques to improve your performance and allow more users to stay on your website longer.
1. Optimize pictures
One of the biggest problems with website speed is image size. Images actually account for the majority of downloaded data on the page. By properly formatting and saving images, you can greatly reduce the number of bytes required to provide such information.
The easiest way to optimize images is to use them before uploading. Before adding images to the content management system, crop them to the desired size and save them to the web. Then compress the image to make the file size as small as possible.
We have a great summary of the best image compression tools here. They can help you optimize your images before you upload them.
Haidian website construction
2. Custody matters
The cheapest hosting plan does not apply to all websites. Slow hosting is a problem that is often hidden. It is common for websites that have grown steadily over time but have not improved their hosting plans.
To ensure that your hosting plan is built for speed, select the Dedicated Server option. If you need something more economical, the next best choice is VPS hosting. You have shared hosting with dedicated server resources.
Then, consider load killers like video content. If possible, use external tools to host these files. A service like YouTube is perfect. (This may be what you are already doing.) Essentially, you can link to these files in their local location instead of adding them to the site file.
3. Attention JS
JavaScript provides many cool effects and things that happen on the website. There is no way to avoid it.
Pay attention to how you use JavaScript, it will not slow down your website for mobile users.
Place JavaScript at the bottom of the file: When JavaScript loads, the browser will not load other elements. If possible, move the JS script to the bottom of the page to solve this problem. In this way, HTML content is presented first. You can use visual prompts to let users know that more data is coming, if necessary.
Optimize and shrink: smaller files load faster. Don't forget that this also applies to code.
Use asynchronous JavaScript: select asynchronous JS loading until all non critical elements are rendered for the first time. This allows scripts to be loaded simultaneously rather than individually.
4. Use delayed loading
Logically speaking, it makes sense to load content from top to bottom, right?
Delayed loading allows you to load the content on the screen before loading other content. (Google likes this option in terms of speed and search engine optimization.)
There are many WordPress plug-ins that can help you do this. They are very simple and lightweight. Try something like a slow load or WP rocket.
5. Utilize cache
Caching allows browsers to store frequently requested files on user devices for a period of time. When caching is enabled, subsequent page loading will be more efficient.
Enabling caching is one of the most recommended options for improving page speed. Users will thank you.
6. Reduce redirection
Do you know how many redirects your website has? Although redirects have many benefits, they slow down the site. When it comes to redirects, the best advice is to eliminate unnecessary redirects.
The fastest is 301 redirection, which moves users from an outdated page to a new version. Think about your content if this action is still necessary. A redirect audit may be required.
Varvy's redirect mapper can help you determine where to start.
7. Try to move the page faster
Accelerated mobile page is an open source imitation of Google, designed to create a page loading fast mobile device.
Create landing pages for AMP versions to take full advantage of this technology. These pages use AMP HTML format and AMP JavaScript, which is an ideal solution for websites that do a lot of online advertising or send users to specific locations.
The biggest advantage is that AMP pages can be loaded almost immediately. The disadvantage is that the backend needs to do more work.
There is a lot of information about the AMP project.
8. Delete tap delay
Have you noticed that there is a little delay between clicking something and the action on the mobile device? This delay was originally intended to make it easier for the device to recognize double clicks. (This function is outdated.)
This is a fix, put it in the header.
Google's Jack Archibald talked about this simple change: "The performance difference is very big! Having an instant response UI means that users can press each button quickly and confidently, instead of stopping to wait for a response.
9. Consider advanced web applications
If your website has a lot of interactive content and dynamic functions, a progressive web application may be the solution.
PWAs are websites that work like applications (but are not downloaded).
The advantage of PWAs is that they can be searched like websites without installation or update. They also tend to work offline, allowing push notifications, and because of the cache method, they are very fast.
The tricky part is that this is a choice only for developers, rather than a starting website builder. However, if the content required by your website is always changing, and it is not as fast as it should be, it is definitely worth seeing.
Don't believe it? Play some interesting progressive web applications.
10. Delete these plug-ins
Plug ins have a lot of value in creating website functions. But because they are easy to find and install, many websites have a large number of unused plug-ins running in the background.
This increases the design weight and code. This is something that users must download before they see the design. It will slow down your website.
When it comes to plug-ins, only what you need and what you actually use are reserved. Close and delete all other content. Then make sure you are updating the plug-in. Outdated, unsupported, or misconfigured plug-ins are speed killers.
Consider plugins that do the same thing -- read descriptions and documentation with updates -- and remove redundancy here.
Finally, remove the plug-ins that can be completed manually (font installation, header label insertion, analysis, etc.).
This article comes from: Haidian website construction