Skip to content

Improve prefetch & site rendering#253

Open
m0ar wants to merge 11 commits intoInsightSoftwareConsortium:mainfrom
desci-labs:fix/improve-prefetch
Open

Improve prefetch & site rendering#253
m0ar wants to merge 11 commits intoInsightSoftwareConsortium:mainfrom
desci-labs:fix/improve-prefetch

Conversation

@m0ar
Copy link

@m0ar m0ar commented Feb 11, 2026

Main change is to lazily render the filetree on the client, as the existing UI tried to synchronously render DOM elements for every single file in the tree. This broke down terribly for very large publications, e.g. pub 874 with ~12k files in the tree took the backend ~18s to respond, and the subsequent render froze the browser for ~3 minutes.

Only the file tree is lazily rendered on the client, all metadata etc is still SSR so this shouldn't interfere with any indexers.

Misc:

  • Fixes prefetch concurrency logic
  • Updates to new xref indexx
  • Fix browse page drop-down in dark mode
  • Delete leftover package-lock.json

Note:
This branch is based on #252

@netlify
Copy link

netlify bot commented Feb 11, 2026

Deploy Preview for insightjournal ready!

Name Link
🔨 Latest commit 97db37d
🔍 Latest deploy log https://app.netlify.com/projects/insightjournal/deploys/698c8e1aa28e730008959abb
😎 Deploy Preview https://deploy-preview-253--insightjournal.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@m0ar
Copy link
Author

m0ar commented Feb 12, 2026

@thewtex Can you have a look at this? 👀 After heavy optimization of the IPFS DAG discovery in dpid-resolver, this builds seem to run fine with concurrency. The PR includes @hubsmoke's fixes from #252, plus the updated xref and a little UI bugfix on the browse page.

The meat however is in 97db37d, where I took the liberty of implementing lazy filetree rendering. Now even the chonkiest of publications load quickly :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants