Do javascript templates save server performance over php templates? -


So I'm trying to create a website that uses almost Simophonie 2, backbone and underscore only on the client Runs. Symfony2 uses symfony2 trigger templates for backend and backbone for frontend, which meet in php classes by the server.

Will it be possible to trigger the template to save server performance and instead use JavaScript templates (underscores)? Or does it make any difference because the templates need to be brought from the server anyway?

A fixed file from the fetching server will always give you server server better performance than a template and return the results Is going to do The probability of being important is very low, and you have to benchmark to figure out how much difference it makes.

Obtaining a stable template file from a server and inserting the data into the template to the server after you can not perform better for dynamically generated data file inject it into it. You have to benchmark it.

  • The performance advantage of using client-side templates is almost always:
    • To bring small data files to the server instead of HTML documents < Li> To revise this and modify the page of an existing page rather than loading a completely refreshed

      The benefits have to be transformed against costs (that is, either additional work To work on the site continues, if JS is available O if pushState together and friends practically URL or weaknesses and search engines with the use of completely relying on JS from invisibility)

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -