Large files in Publish cause browser to freeze temporarily while loading, both in popovers and when loading pages.

Steps to reproduce

  1. Visit this example page: https://publish.obsidian.md/cag/public/Anagrams
  2. Mousover links.

Expected result

Expected:

  • for webpage/browser to continue working instead of hanging (e.g. animated GIF freezes while page is loading)
  • show some kind of loading indicator/progress bar instead of a blank screen
  • possibly “lazy” load file in chunks, while scrolling (not sure if this is possible with obsidian’s current structure?) OR truncate previews?
  • show an error saying “too large to preview” if all else fails?

Actual result

Browser hangs for about 10 seconds while loading file with 10,000+ lines

Environment

  • Operating system: Safari Version 14.0 (15610.1.28.1.9, 15610) on Mac OS 10.15.7 (19H2)
  • Obsidian version: Publish

Additional information

Blank popover while browser is frozen…

1 Like

thanks

2 Likes

Fixed.

4 Likes

y’all are awesome, and lightning fast :zap: !

1 Like