The most expensive JavaScript code in History)

Source: Internet
Author: User
Opera found the most expensive Javascript Code . Due to this line of code, the server vendor successfully dropped the million orders.
Origin:

Some time ago, Opera browser companies needed more and more servers. The company has predicted that opera Mini, opera link, and opera Turbo will bring about explosive growth. Therefore, it needs to add n servers to reduce the pressure on servers. (In fact, opera is experiencing explosive growth. See the global mobile Internet report published every month .)

Since these services are all server-based, the opera mini server needs to save traffic acceleration for tens of millions of mobile users around the world, while opera Turbo is responsible for computer-wide network acceleration, opera link is frequently synchronized to ensure that thousands of users are updated in real time. Therefore, the number of servers to be added is not an order of magnitude, and the management approves the budget for the entire order to reach several million Kona (currently the price of 1 Norwegian Kona is basically equivalent to 1 RMB ).

After:

The technical controllers of the Information System Department are familiar. The nature of their work determines that they spend more time on servers than on Friends of the opposite sex. After their ups and downs, the company purchased a collection prototype test process. All suppliers send machines to the Norwegian headquarters in Oslo for testing.

Technical controllers pick servers like girlfriends until one server breaks them all. This server comes from a world-class manufacturer that everyone knows (the name is not mentioned ). After the opera staff starts, they use the Opera Browser to access the management interface and are directly transferred to the error interface. This is not all the problem. When we find the root cause of the problem, together with the CSS inventor (currently opera CTO), it will cause everyone to crash.

The cause of the error is that a line of code is added to the server management interface by the following dealer. It is determined that the access management interface of the Opera Browser directly leads to the incorrect page.

Result:

Thanks to this line of code, the company successfully angered all relevant staff of opera and successfully lost the million orders. The opera company was surprised to write code to find our browser and want to sell it to our company's servers?

Culprit:

It is a line of JavaScript code, and the logic is simple and crude to process users. It is found that users use the Opera Browser to directly turn to the error page. This is the most expensive JavaScript code in history.
If (is. Opera) {window. Location. href = "config/error.htm ";}

 

Switch from Network

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.