Skip to content

Web server is extremely slow #937

@novascreen

Description

@novascreen

Describe the bug
The web UI shows a blank screen for a very long time because the transfer speed is extremely slow and script tags have no defer attribute on them.

Expected behavior

  • web server is fast
  • script tags have defer attribute on them so something shows on the screen even if things are slow
  • static assets can be cached, ideally forever (use hashed filenames), not no-store

Screenshots

Image

Desktop (please complete the following information):

  • Browser: Chrome 136.0.7103.114 on MacOS 15.4.1, Safari on iOS 18.4.1

MyNode hardware (please complete the following information):

  • Device: Raspi4
  • Version 0.3.36

Additional context
Comparison with transferring the same file using scp:

▶ time scp admin@mynode.local:/var/www/mynode/static/jquery_ui/jquery-ui.js /dev/null
jquery-ui.js                                                     100%  509KB   4.2MB/s   00:00
scp admin@mynode.local:/var/www/mynode/static/jquery_ui/jquery-ui.js /dev/nul  0.02s user 0.03s system 6% cpu 0.803 total

▶ time curl -o /dev/null http://mynode.local/static/jquery_ui/jquery-ui.js
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  508k  100  508k    0     0   6787      0  0:01:16  0:01:16 --:--:--  8906
curl -o /dev/null http://mynode.local/static/jquery_ui/jquery-ui.js  0.01s user 0.03s system 0% cpu 1:16.73 total

At some point I reinstalled the entire MyNode and i'm still having this issue. The fact that I can fetch the file really fast over ssh indicates it's not a network issue and the fact that it also happens from my phone indicates it's not an issue with my laptop either.
There is no difference when using the IP rather than the hostname.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions