angularjs - Extension make deference performance in angular js -
i developing web application using angular js laravel 4.2 so, anugular js front-end , laravel getting data database can 1 please let me know in angular js whatever template file used , having extension .php or .html make deference in performance..?
when starting out angular can tempting "double templating" - using templates on server side , client side. think of angular application disconnected backend ios or android application.
i recommend templating on client side. can improve performance in 2 ways: 1) can use cdn distribute front end application since it's entirely static. 2) if don't use cdn can avoid processing involved in server side templating - request static resource faster dynamic one.
to summarize, if using php tempting double templating. if manage avoid double templating request php file run through php interpreter. requires more processing time when compared serving static html resource.
Comments
Post a Comment