官术网_书友最值得收藏!

History of Web scripting

The high sophistication of current web pages with animations, dynamic content, fades, 3D effects, responsive designs, and clever navigation make it easy to forget that the early web was mostly textual pages, dumb forms, and images that often took a while to load. Then, along came JavaScript, in the form of a script interpreter built into the browser, providing form data validation, news ticker moving displays, animation, and games. For small projects, it succeeded in spicing up static websites without requiring server-side CGI scripts.

Developers enjoyed the near instant edit and refresh cycle—changing a line of code and hitting F5 (refresh) in the browser to see the result. JavaScript did not stay in the browser and was soon found on the server side of web applications. It also became a general purpose script for use outside the browser.

Note

Fun fact: JavaScript was written in just ten days by Brendan Eich for the Netscape browser and was originally called LiveScript. Dart has been renamed too—originally, it was called Dash.

Considering the timescale it was written under, JavaScript is a great technical achievement, but in 20 years it has not advanced very much, while web applications have rapidly progressed. Web applications can contain thousands of lines of JavaScript code. Outside of very simple pages, plain JavaScript is not enough anymore, as evidenced by the number of tools and libraries that have sprung up to assist development.

Many of these solutions are created to fix problems with JavaScript, ranging from syntax and features to design and productivity. The language simply was not designed for the type of web application that the modern web requires.

Recent advances in JavaScript engines have produced great leaps forward in performance. The V8 engine that powers the Chrome browser and Node.js has shown great improvement in making new kinds of applications viable. However, the returns from JavaScript virtual machine optimizations have been diminishing over time.

主站蜘蛛池模板: 绿春县| 江门市| 大宁县| 安康市| 涪陵区| 城固县| 南安市| 博客| 宁河县| 浦县| 土默特右旗| 红桥区| 竹山县| 定西市| 彭泽县| 清水河县| 乐清市| 德清县| 南靖县| 张北县| 盐山县| 来凤县| 娄烦县| 合江县| 拉孜县| 达日县| 巢湖市| 福鼎市| 锦屏县| 儋州市| 鹤岗市| 湄潭县| 滁州市| 镇宁| 重庆市| 罗定市| 浙江省| 泰宁县| 苍溪县| 思南县| 石家庄市|