schultek / jaspr

Modern web framework for building websites in Dart. Supports SPAs, SSR and SSG.
https://jasprpad.schultek.de
MIT License
1.22k stars 74 forks source link

Cannot load page after too much changes #238

Open mjablecnik opened 4 months ago

mjablecnik commented 4 months ago

Description

When I am changing pages in default Jaspr template too fast so page loading is too long.

Steps To Reproduce

https://github.com/schultek/jaspr/assets/2686906/6e68d38b-5dd3-4a98-bcb7-b6514ea5a4f4

Doctor Output

martin at Martins-MacBook-Air jaspr_project >>> jaspr doctor
[✓] Jaspr CLI (Version 0.12.0)
  • Dart Version 3.4.0 (stable) (Mon May 6 07:59:58 2024 -0700) on "macos_arm64" at /Users/martin/fvm/versions/3.22.0/bin/cache/dart-sdk/bin/dart
  • Running on macos Version 14.1 (Build 23B74) - Locale en-CZ
  • Analytics: Enabled

[✓] Current Project
  • Dependencies on core packages:
    • jaspr: ^0.12.0
    • jaspr_builder: ^0.12.0 (dev)
    • jaspr_web_compilers: ^4.0.9 (dev)
    • jaspr_router: ^0.4.1
  • Rendering mode: server
  • Uses jaspr compilers: true
  • Uses flutter embedding: false

Expected Behavior

Change pages without long loading.

Additional Context

Here are steps of project creation:

Screenshot 2024-05-18 at 21 28 06

schultek commented 4 months ago

I could trace it to some weird behaviour of shelf when piping through the sse connection to the build_web_compilers server. I don't know how to fix it though.

However this only happens during development and not production.