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)
. , POSTS , " ", , . , . , , , .
, - . ( ) - , , HTML- 100% , , - . , , - , . ( ) , .
, , , :
1.) . 2.) , ( ) . 3.) , , , . 4.) - . 5.) , , , . .
, , , . , , . , , , , , .
, , -, , . ?
, . , - , , .
-Brian J. Stinar -
SproutCore , , , . , GWT Cappucino, SproutCore is JavaScript . . JavaScriptMVC qooxdoo.
JavaScript. 100 000 ( /). , jQuery 6000. , , .., . , , , , , - . (, - 100 000 !)
-, -. , SEO, .
ExtJS
, jquery, spring mvc 3. , , . , javascript ... . , , SEO, intial html. , , .
- , , . : http://code.quirkey.com/sammy/
!
: 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
Source: https://habr.com/ru/post/1765705/More articles:Кэш Intersystems - Как включить/настроить службы безопасности - intersystems-cacheHow to install a windows service that runs as an administrator? - .netPotentially dangerous request, hide the error - c #Counting sorting - implementation differences - sortingRelayCommand CanExecute behavior does not work - c #Basic Lisp Macro Error - common-lispWebapp boot code in Tomcat - spring.js file format - javascriptAsp.Net Routing Common Handler - asp.netUnderstanding array indexing in R - arraysAll Articles