Disclosure: This article was primarily drafted by an AI assistant using official documentation and a reviewed technical example. The code is a generic teaching example, not production application code. It does not report a measured performance or search-ranking improvement.
Two jobs should not require one large payload
A catalogue page has at least two different jobs. It lets people browse a stable page of linked items, and it may let them search a much larger collection. A visitor reading one page does not necessarily need the entire search index in the initial HTML or hydration data.
One way to separate those jobs is to return the current page’s items and total count from the server, then request full public metadata in the browser only when somebody starts a search.…