A local development server must not continuously request updates from the server. The server should not force a page to reload or fetch new data without a user's action. This prevents wasted computer power and keeps the page working smoothly.
By Pawan Nayar · from the LLOS AI Learning record
A local development server must not continuously request updates from the server.
The server should not force a page to reload or fetch new data without a user's action. This prevents wasted computer power and keeps the page working smoothly.
When a web page is open on a local server, it should not ask for new information all the time. This constant asking uses too much computer power. It also makes the web page seem like it is always loading. A developer must design the server to wait for user actions. If a developer wants a page to update automatically, the server should send updates. This is better than the page asking for updates. This method saves resources and makes the page faster.
A developer opens a web page from a local server. The page shows a loading spinner that never stops. Every time the server makes a small change, the page tries to get all new data. This uses a lot of the computer's power and slows down the development process.
More from the same record, pulled by shared topic — not written new for this page.
The difference between desktop and mobile views should be handled by CSS, not by having separate files. Desktop rules go inside `@media (min-width:901px)`.
A developer should reset the scroll position of a reusable panel or modal. This action must happen before the panel or modal displays new content.
The `overflow:hidden` property tells a web browser to hide content that goes outside an element's box. This can cause problems for animations.
A page with much content needs a scrollbar. The footer should not always be visible.
A local development server must not continuously request updates from the server. The server should not force a page to reload or fetch new data without a user's action. This prevents wasted computer power and keeps the page working smoothly.