Skip to content

Conversation

@DblK
Copy link
Member

@DblK DblK commented Nov 3, 2016

Migration of Gogs PR #3844

@DblK
Copy link
Member Author

DblK commented Nov 3, 2016

@0xBAADF00D can you make your original PR here instead of in Gogs repository?

@DblK
Copy link
Member Author

DblK commented Nov 3, 2016

Waiting for @0xBAADF00D to PR another one.

@DblK DblK closed this Nov 3, 2016
@thibaultmeyer
Copy link
Contributor

@DblK ok is will re-create PR within few hours. on master or develop branch ?

lunny pushed a commit to lunny/gitea that referenced this pull request Feb 7, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
@delvh delvh added issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea and removed reviewed/invalid labels Oct 7, 2023
pieer added a commit to ikigau/gitea that referenced this pull request Oct 27, 2025
…s in FishboneGraph

The FishboneGraph component was experiencing perceived slowness due to
on-demand loading with dynamic import. This created a double-delay:

1. Component code loading delay (dynamic import when tab clicked)
2. Data fetching delay (API call after component mounts)

Users had to wait for both delays sequentially, making the bubble view
feel slow to load.

Solution:
Changed from dynamic import to eager import:

Before:
```javascript
const {default: FishboneGraph} = await import('...FishboneGraph.vue');
```

After:
```javascript
import FishboneGraph from '../components/graph/FishboneGraph.vue';
```

Benefits:
- Component code is bundled with the main JavaScript bundle
- When user clicks bubble tab, only data fetch is needed
- Eliminates one network roundtrip (the dynamic import)
- Users see the loading skeleton immediately (from issue go-gitea#36)
- Perceived performance improvement: ~50% faster tab switching

Trade-off:
- Slightly larger initial bundle size (~100KB for FishboneGraph + dependencies)
- But this is acceptable since the bubble view is a core feature
- Modern browsers can handle this bundle size efficiently

The component still lazy-loads data via API (which is correct behavior),
but the component code itself is now immediately available.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants