research-software-directory / RSD-as-a-service

This repo contains the new RSD-as-a-service implementation
https://research.software
22 stars 15 forks source link

Pages with a lot of mentions are slow #1107

Closed ewan-escience closed 5 months ago

ewan-escience commented 5 months ago

Pages with a lot of mentions, like this one, are very slow to load. This is partially because the Next.js server takes a long time to respond with the server side rendered page, and partly because the page takes a long time to render on the client.

We could investigate if any optimisations could be made on the Next.js server and on the client. But we might come to the conclusion that we need to lazily load mentions on the client side (i.e. only load the respective mentions when you open the drop down menu of a type of mention).