Table of Contents
Reply content:
Home Backend Development PHP Tutorial javascript - Why do many websites wait a few seconds before automatically downloading resources? What is the reason?

javascript - Why do many websites wait a few seconds before automatically downloading resources? What is the reason?

Aug 04, 2016 am 09:19 AM
html javascript php python

javascript - Why do many websites wait a few seconds before automatically downloading resources? What is the reason?
As shown in the picture, many websites have N seconds of waiting time before automatically downloading resources. I would like to know what considerations this is based on.

Possible answers collected so far:

  • One saves disk IO, two advertisements, three anti-crawlers, four fraud pv

  • Anti-hotlinking and anti-swiping

Please explain in detail. .

Reply content:

javascript - Why do many websites wait a few seconds before automatically downloading resources? What is the reason?
As shown in the picture, many websites have N seconds of waiting time before automatically downloading resources. I would like to know what considerations this is based on.

Possible answers collected so far:

  • One saves disk IO, two advertisements, three anti-crawlers, four fraud pv

  • Anti-hotlinking and anti-swiping

Please explain in detail. .

1. Advertising. Increasing the dwell time means that users have more opportunities to see and click on ads that interest them, and then have higher income;
2. Recommendation. Relevant downloads can be recommended immediately. Some people close the website directly after downloading things. They will not see the relevant download information and will not get more views;
3. Announcement. It is convenient to add some prompt text, such as donation information in your screenshot;
4. Terms. When we download, we usually involve relevant terms (disclaimer). If it is placed on the download page, no one will notice it, but if it is placed here, many disputes can be settled;
5. Buffering. Buffer the server to find resources. Once the countdown is completed, it will be enough to start downloading. There is no need to wait for a blank page;
6. To be added.

Newbie, please like. I like the atmosphere of this website very much, but if I don’t have 15 points, I can’t like other people’s excellent answers. Thank you

1. Prevent accidental downloading. What if someone accidentally clicks on it? It’s not very friendly to start downloading immediately

2. The most important thing is the various embedded things that allow you to browse this page, such as advertisements, etc.

1. For advertising and marketing purposes
2. To facilitate the backend to find better download routes

1. Prevent resource waste
2. Buffer server
3. Give users choice

Personally, I think downloaders should be given a chance to buffer, and there is still a choice between whether to download.
During the countdown process, he can also choose to give up downloading to reduce his data consumption, etc.

Let me take a guess. The first is to prevent DDOS, the second is to allow you to watch ads for a while, and the third is to prevent crawlers to a certain extent.

For entertainment purposes only.

It is also possible that the download volume of the resource is relatively large, so as to avoid requesting too large a download volume at the same time

Maybe this is just to create an effect, wait a few seconds, and those who don’t understand think that the background is packaging and processing, but in fact this is implemented by js. Similar to an ATM cash machine, when you withdraw 100, you will hear the sound of a lot of money being counted inside. In fact, it is just a sound effect, creating an effect.

1 Prevent hot links
2 Have own business logic processing
3 User experience

Mainly to increase stickiness

Another point I think is to prevent others from malicious repeated clicks and unlimited requests...
Someone clicked once, and when I saw the countdown, I felt that I was not in the mood to click a second time

In addition to some of the technical advantages described above, it will also have many impacts from the perspective of psychology and design;

A very simple example, some surmountable difficulties can help psychologically improve user stickiness, similar to the suspension bridge effect, including: purchasing user groups, download waiting and delays, and equivalent exchange of points and functions (15 points is required) Likes count (2333), and leave "special" memories for users.

Verification:
1: Which one do you think is easier to get into your favorites, a very common website or a threshold registration website that can be quickly logged in through QQ?
2: You should still remember the complicated emotions of purchasing the XXX network user group.
3: In order to like his answer for 15 points, you can’t help but click on the topic "How to get points"...
4:...

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP and Python: Different Paradigms Explained PHP and Python: Different Paradigms Explained Apr 18, 2025 am 12:26 AM

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

Why Use PHP? Advantages and Benefits Explained Why Use PHP? Advantages and Benefits Explained Apr 16, 2025 am 12:16 AM

The core benefits of PHP include ease of learning, strong web development support, rich libraries and frameworks, high performance and scalability, cross-platform compatibility, and cost-effectiveness. 1) Easy to learn and use, suitable for beginners; 2) Good integration with web servers and supports multiple databases; 3) Have powerful frameworks such as Laravel; 4) High performance can be achieved through optimization; 5) Support multiple operating systems; 6) Open source to reduce development costs.

HTML: The Structure, CSS: The Style, JavaScript: The Behavior HTML: The Structure, CSS: The Style, JavaScript: The Behavior Apr 18, 2025 am 12:09 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

Choosing Between PHP and Python: A Guide Choosing Between PHP and Python: A Guide Apr 18, 2025 am 12:24 AM

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

Python vs. JavaScript: The Learning Curve and Ease of Use Python vs. JavaScript: The Learning Curve and Ease of Use Apr 16, 2025 am 12:12 AM

Python is more suitable for beginners, with a smooth learning curve and concise syntax; JavaScript is suitable for front-end development, with a steep learning curve and flexible syntax. 1. Python syntax is intuitive and suitable for data science and back-end development. 2. JavaScript is flexible and widely used in front-end and server-side programming.

PHP and Python: A Deep Dive into Their History PHP and Python: A Deep Dive into Their History Apr 18, 2025 am 12:25 AM

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHP: An Introduction to the Server-Side Scripting Language PHP: An Introduction to the Server-Side Scripting Language Apr 16, 2025 am 12:18 AM

PHP is a server-side scripting language used for dynamic web development and server-side applications. 1.PHP is an interpreted language that does not require compilation and is suitable for rapid development. 2. PHP code is embedded in HTML, making it easy to develop web pages. 3. PHP processes server-side logic, generates HTML output, and supports user interaction and data processing. 4. PHP can interact with the database, process form submission, and execute server-side tasks.

The Future of HTML: Evolution and Trends in Web Design The Future of HTML: Evolution and Trends in Web Design Apr 17, 2025 am 12:12 AM

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

See all articles