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