Traditional Culture Encyclopedia - Traditional festivals - What is front-end rendering? What is server-side rendering? Differences between them and their application scenarios
What is front-end rendering? What is server-side rendering? Differences between them and their application scenarios
Front-end rendering: it should be said that when you first enter the page, the data of the commodity list will not be given to you, nor will it be rendered. Then when loading the script, start another interface through ajax or fetch, and the server returns json data of the commodity list to you. You use the template engine in js and other technologies to spell these data into html strings and insert them into Dom.
Server rendering: the server renders the product list information of the page with the smarty template of php or jsp of java, and returns an html to the browser.
Difference: If the page needs spider crawling, the data rendered by the front end cannot be crawled, but the page rendered by the server can be crawled. If there is SEO demand, it can only be rendered by the server. If you render with Node.js, there will be no such problem.
- Related articles
- What Chinese patent medicine is effective for cold and cold?
- How to write to 18-year-old daughter
- In traditional aesthetics, the standard beautiful face is
- Practical Significance of Tang Hua Investigation in Xixia, Nanchang
- New energy and good car recommendation: What car should I drive home for the New Year? Look at these models.
- Why can't I string relatives on the fifth day of the Lunar New Year? Born?
- How to draw a mouse the easiest way
- Read 500 words of historical stories.
- What is the African haystack dance?
- Which province does Jiezidun service area belong to?