-
Notifications
You must be signed in to change notification settings - Fork 235
Various Dev Time Perf Updates #2304
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
Conversation
Tachometer resultsChromethumbnail permalink
Firefoxthumbnail permalink
|
hunterloftis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested via:
yarn
yarn docs:watch
yarn storybook # then changing stuff to see the story update
yarn docs:watch works great, & no longer registers a serviceworker
yarn storybook mostly works, with some small side-effects:
- forces https (so you get a security warning)... http2?
- I made some changes to see how quickly storybook updated. It updated very quickly, but I noticed that it updated twice (about 8s apart):
|
Yes, https comes from the http2 option. It’s likely the least important of these changes, though I do like the update it brings for load speed. I already allow HTTPS for localhost so I didn’t even really notice it. I can look at including a cert in repo, if not do you see that as a blocker? for the double reload, do you remember what file you updated? Would love to track that down if we can. There is likely still the issue that as best as I can see there’s not way to control what file changes the page reload is bound to, so if you change a CSS file, it will start to reload and if the associated TS file hasn’t been created to subsequently create a JS file and that file isn’t available until that first load the creation of those file trigger subsequent reloads. A PR into web dev server might be in order… |
|
I don't see https as a blocker, just wanted to mention the difference - maybe we could link to some documentation on allowing local https without warnings. I was updating <div id="label">
Updated
</div> |
|
(pulled & tested the latest version w/ the same result btw - whether or not that's a blocker I think depends on if multiple-reloads is working as intended) |
|
Sorry, I updated the branch, but not actually anything in this PR, yet. I've been testing and it looks like the "incremental build" in With that in mind, I've just pushed a new commit that filters to a smaller number of files the watch command for Storybook, so that it should refresh a little less often, but with the realities of |
hunterloftis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything works! We can look into reducing refresh counts over time.

Description
Motivation and context
Found these working through the work in #2257
How has this been tested?
Types of changes
Checklist