Creating a single page only on the client side

I am going to try out the idea, mainly for fun, and my question is how reasonable this is and whether there are any libraries or frameworks that could facilitate this experiment.

So, the idea: in principle, it is necessary to write a new interface for the website I created, but to do this only with client code. I can read / write data using ajax, as my existing website has an API that allows me to fulfill all kinds of requests. This allows me to use JavaScript for all this and theoretically put all the code in a single file.

Obviously, there are limitations to workarounds; bookmarks, page updates, back buttons, etc. But these limitations make it interesting, right? :) I'm not really worried about indexing in search engines, because you still need to log in to use the site.

The site itself is not too complicated, but it is also not simple. There are four different user levels, several languages, and quite a lot of data to be presented.

It is a bad idea? If so, why would you advise against this? And do you know of any JavaScript frameworks or libraries that could make this easier? (And no, I'm not looking for abstractions like the Google Web Toolkit, I would like something pure JavaScript)

+3
source share
6 answers

. , POSTS , " ", , . , . , , , .

, - . ( ) - , , HTML- 100% , , - . , , - , . ( ) , .

, , , :

1.) . 2.) , ( ) . 3.) , , , . 4.) - . 5.) , , , . .

, , , . , , . , , , , , .

, , -, , . ?

, . , - , , .

-Brian J. Stinar -

+2

SproutCore , , , . , GWT Cappucino, SproutCore is JavaScript . . JavaScriptMVC qooxdoo.

JavaScript. 100 000 ( /). , jQuery 6000. , , .., . , , , , , - . (, - 100 000 !)

-, -. , SEO, .

+2
+1

, jquery, spring mvc 3. , , . , javascript ... . , , SEO, intial html. , , .

0
0

: Java. ItsNat

Think about JavaScript, but the code is the same in Java on the server with the same DOM APIs, on the server it is easier to manage your application without user clients / bridges, because the user interface and data are together.

Regarding SEO, bookmarks, etc. there are solutions on one page, look at the Single Page Interface Manifest

0
source

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


All Articles