Good practice using javascript to render the whole page?

I searched for a while and did not find anything related to this. I even tried asking for the UX section, and they said that it belongs more here, so we go again:

I am writing a page that employees can edit, add, delete or view in stock. It depends (heavily) on JavaScript to render and animate some elements on the page in order to speed up the page loading process and improve the user interface, since the server sends only pure JSON and then the JavaScript browser processes JSON and then displays (creates) the whole page.

It looks nice and loads very fast, but is considered good programming practice? And when will this be a problem? Even Internet Explorer or mobile browsers (Chrome, ABP Browser) display every page without any problems. No hiccups or other things. But when I saw these 700+ JS lines, the question remains ...

And in case someone is interested in what the page looks like, here are some photos: (Maybe it doesn't matter, maybe not)

https://i.stack.imgur.com/0rLI6.jpg

https://i.stack.imgur.com/d90n9.jpg

+4
source share
4 answers

. - , JavaScript, , . (: ) , CDN , JS . JavaScript ( ), JavaScript ( HTTP- ). , JS, , , JavaScript, . - .

- . ? .

, JavaScript, Google , SEO, . UX.

. - , JavaScript: -, // .. , , Google .. , , JavaScript. , ? JavaScript, , . , , - .

+2

. React.

SEO ? , - , HTML ( , ), .

, JS HTML , React, , . React - . - - , , DOM. React , , , .

, - -, , React - Redux.

0

:

1- . Javascript , - .... ( ), , . . - , javascript, UX - .

. , . , (, angular ), , .

0

, ( - " ", , , ).

, , ,

JSON , perofmrnace. , Javascript ? HTML5, .

HTML, Javascript CSS, JSON? .

What is the worst that could happen if your application was compromised? The usual guide for securing web applications is based on the more traditional server version of the HTTP request-response request with sessions. And one of the first things that someone writes that protects our applications is that Javascript does not access the session cookie. Oauth2 is specifically written to handle this kind of scenario.

0
source

Source: https://habr.com/ru/post/1659843/


All Articles