is it possible to create single page application without using any other framework like react , angular? if there is a way, can someone give example?
|
|
May '18 |
9 |
389 |
0 |
You can work around https://developer.mozilla.org/en-US/docs/Web/API/History , but in the end you will face challenges that are already solved by frameworks you named :)
Hi,
is it possible to create single page application without using any other framework
angular.min.js is 166 Ko of javascript condensed code written and used by a huge community of developers. So ,depending on what you want to achieve:
in both case you will have to develop in javascript for the frontend and in php for the backend.
there is no magic behaind the curtains it all ends in plain javasctipt. So yes you can
You can initalize your page with the minimum needed for the user and get all user interfaces on demand by ajax call really simply, I do it in all my applications web3D gamelike.
The problem with angular or other framework like it is that creates a lot of watchers which could kill performance and the user consume a lot of the data that he maybe never use.
Even if its better now, in large applications its a real problem and more in 3D application where javascript is already used in real time by frame to render the scene. Then you can't control the user data consumtion, all data will be loaded and updated constantly for maybe nothing so a lot of server/client performance and bandwith lost.