5 views
Were the store’s pages generated on demand when a user requested them, or created in advance as static pages?
Asked at
AI answer
It depends on the type of page and how up to date the data needs to be. For pages with content that changes infrequently, static HTML files (SSG) can be generated in advance and updated during the build or in response to an event. Catalogs and product pages are often generated dynamically—on the server for each request (SSR) or on the client by fetching data from an API. Sometimes ISR is used to periodically update statically generated pages. It’s important to clarify what was actually used in the project: the rendering approach affects data freshness, response speed, server load, and SEO.
Also asked at СБЕР
- Have you worked with useLayoutEffect and how does it differ from useEffect?
- [name] asked: why did you decide to change your job?
- What is Event Loop in JavaScript?
- What is Virtual DOM and how does it work in React?
- Please tell us about your experience: what tasks do you solve, what is your area of responsibility, what technologies have you worked with, and how are the team processes organized?
Similar questions
- Where would you use static site generation (SSG), and for what kind of project?
- Did you make any architectural changes to how data was loaded, so that you didn’t have to load a large volume all at once and could fetch it in chunks instead?
- What performance optimizations did you make, and how did you implement them?
- What’s the difference between SSR, SSG, and SPA, and how did you choose a mode for your most recent project?
- Were they product companies or companies doing custom development?