Skip to content

Conversation

@patrick11514
Copy link
Owner

No description provided.

@patrick11514 patrick11514 linked an issue Jun 16, 2025 that may be closed by this pull request
5 tasks
@patrick11514
Copy link
Owner Author

@copilot Could you implement this:

  • The images in gallery currently (in list /[[lang]]/gallery and in specific article /[[lang]]/gallery/[id]) block main app, when loading, so user can't navigate back, or click links, because app is frozen, until all images load (so this needs to fix) and also the images should load lazy, only when person scrolls to them
  • Cache images, for images /images/[id]/+server.ts we need to add caching headers, for quite long, beacuse the image will not be changed. Also we should send headers early, before we even load the image content, so the headers came asap
  • Optimize the way of loading images, because currently it takes ages to load them (/images/[id]/+server.ts)

Copy link

Copilot AI commented Nov 30, 2025

@patrick11514 I've opened a new pull request, #8, to work on those changes. Once the pull request is ready, I'll request review from you.

…#8)

* Initial plan

* Improve image loading with streaming, caching, and lazy loading

Co-authored-by: patrick11514 <56652391+patrick11514@users.noreply.github.com>

* Add error handling for background cache operation

Co-authored-by: patrick11514 <56652391+patrick11514@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: patrick11514 <56652391+patrick11514@users.noreply.github.com>
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.

TODO

2 participants