Repository navigation
Conversation
|
|
||
| const forkFragment = select<HTMLElement>('include-fragment', forkDialog)!; | ||
| forkFragment.addEventListener('load', () => onFragmentLoaded(forkDialog)); | ||
| forkFragment.setAttribute('src', forkFragmentUrl); // This will load the fork fragment. |
There was a problem hiding this comment.
This is not the suggested solution, I don’t want to load the fork fragment on every page of every repo I visit.
Please refer to the instructions in the last comment of that issue. #1129 (comment)
The fork should only be remembered once you visit it. If you never visit your fork, there will be no link.
There was a problem hiding this comment.
The fork fragment already starts loading once you hover over the fork button, therefor I thought GitHub wouldn't mind this one extra call to the fragment. It's not an API call. And it's done async.
There was a problem hiding this comment.
Yeah but I don’t hover the fork button and the suggested solution works best for repos that you didn’t fork: which is the vast majority of them.
Async or not, there’s a repeated HTTP request we can avoid, for something that most of the times doesn’t exist.
Description
Add links to the forked repos below the original repo. For users and organizations.
Closes
Closes #1129
Supersedes #1108
Screenshots
Original repo:

User forked repo:

Organization forked repo:

Hover card:

Test