-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove activation hook #300
Conversation
Do you mean that the toolbar is being loaded in quite late and it suddenly just appears? I'm not entirely against removing it, but I'm personally not in favor of it. 20ms is not much but 1) that might be more on a slower computer and 2) if every package maintainer thinks that it adds up quickly. Some alternatives we could consider:
Also, if we do decide to merge this Pull Request I would like to see all changes from #283 reverted 🙂 |
Yes. It appears suddenly. I don't know how to add an animation. If you know, that can help. For performance, I can improve the loading time. That is on my todo list. 👍 |
@suda Could you merge this? It makes Atom look much better. |
Hi Amin, the activation hook was added on purpose to improve Atom's performance. |
In that case it would definitely make more sense to merge those PRs before merging this one 😉 If for whatever reason those PRs don't get merged we don't want this one having been merged already.
That's fine, someone else can make that contribution if we decide not to merge this PR. |
I agree we can add the animations later. And other PRs by Amin give a great performance boost anyway!
Yes because it's trying to be loaded in parallel with Atom's core making it a bit slower instead. The goal of the hook was to give Atom all resources to bootstrap and then let it decide what to initialize in what order. We shouldn't try to squeeze ourselves into this process. |
As I said, there was a reason for adding the activation hook and I wouldn't like to remove it. We should come up with a nicer implementation of #306 instead of going against Atom's recommendation of using the hook IMO. |
Activation hook is very useful for packages that don't need to load a feature right away. For example, they just work in the text editor, etc. But toolbar should appear when atom loads, and if does not, it makes atom look weird (compared to other IDEs) I mentioned in the other repository too: I think here we are doing things that are not common in other software/IDEs. All the usual software, load their toolbar normally during the loading time. We don't need to circumvent doing this! Tool-bar is, in my opinion, a crucial part of Atom, and it is so useful that I want to include in atom-community builds: https://github.com/atom-ide-community/atom/projects/4#card-41191288 |
You have a fair point. Lets merge this in then 👍 |
Thanks! 🎉 |
Tool-bar late loading does not look good. It makes the Atom look bulky. I think 20ms is not that long to defer it.