Benefits of All-Javascript Web Pages

I noticed that many large (huge) sites, such as Google and Facebook, when searching for the page source 99% of the source is JavaScript.

Does anyone know the benefits of this approach over regular HTML + JavaScript pages?

Should you just add some security or get benefits in terms of performance or ease of maintenance?

+3
source share
4 answers

One of the reasons why I implemented the pages in this template was because I wanted a client-agnostic server that simply serves data packaged in an easily processable format (like JSON) so that the same server can be used for control traditional webapp, as well as other applications, such as native applications for Android and iPhone, without any special modifications to the server code.

JavaScript , JavaScript , HTML. , , , , , -, , JavaScript.

+2

- All-Javascript

, , . , , - , DOM.

. , , .

, , script - , .

0

, . , - . ( msdn, localstorage JavaScript , , HTTP-, , JS).

-1

javascript . , , , JSF .., javascript . Javascript , , ( ), , . , , , "" javascript, . javascript js.

-2

All Articles