Answer the question
In order to leave comments, you need to log in
How to reduce page generation time (PUG)?
Heavy queries from mongodb after optimization take only 5-8ms, during which time they form an object and spit it out from the server. How happy I was)
But after I connected the rendering of the template through pug, the page time increased to 120-150ms, which is 25 times longer =(
Maybe there are some faster solutions? Or generate HTML on the server by making some kind of your template engine?
Answer the question
In order to leave comments, you need to log in
such a thing appeared a few years ago, but did not take off
famous.org/learn
gryat renders just in years, but, apparently, they were created too early, not everyone has it
easier yet there are templating engines like {{ mustache }} - it
still works for different languages you can generate all the html in advance, and then overlay content from json on the client
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question