logseq / logseq/db-test

Very long initial loading time when running exported HTML on a local server

Open
#1,185 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
28
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Search first

- [x] I searched and no similar issues were found

### What Happened?

After exporting my graph to HTML and running it through a local server, the initial loading time is very long.

I am not sure whether this is caused by the relatively low specifications of the computer running the exported HTML, so I cannot determine whether the loading time is expected behavior.

### Reproduce the Bug

1. Export the graph to HTML.
2. Run the exported HTML files using a local server.
3. Open the exported page in a web browser.
4. Observe the initial loading time.

### Expected Behavior

The exported HTML should load within a reasonable amount of time, if possible.

### Screenshots

_No response_

### Files

_No response_

### Browser, Desktop or Mobile Platform Information

windows 10
cpu: i3 9100F
ram: 16gb

logseq 2.0.1 export
db.sqlite filesize: 7.73mb

browser: chrome

### Additional Context

_No response_

### Are you willing to submit a PR? If you know how to fix the bug.

- [ ] I'm willing to submit a PR (Thank you!)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the export flow using the reported Windows 10, Chrome, and 7.73 MB db.sqlite context: export the graph, serve the exported HTML files locally, and measure the initial load. Investigate which part of the exported page or database processing accounts for the delay; done means identifying the bottleneck and confirming that the exported page loads within a reasonable time.

Written by the indexing model from the issue text.

Assessment

Tech stack
sqlite
Domain
performance, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.