Open jaxgeller opened 8 years ago
Thanks for the feedback!
Definitely something worth looking into
@jaxgeller Thanks for filing. We're planning on doing a round of checks/optimization after some other, larger items. A cursory look at this particular issue shows some funkiness with the active state of our subnav:
I'm not sure of the issue above, but I was able to get rid of the entire page repaint when the repo info was hovered on by adding transform: translateZ(0)
to every nav item. This puts the nav items in their own layer, isolating the painting into their own element and not the page.
Again not sure if this was what you were getting at, but overall its a nice micro optimization nonetheless.
On a side note, how did you produce the gif above?
Every time you click between the repo info and tags theres a fetch to get the content. So if you ever have to toggle back and forth between the two, there is a noticeable lag between switching.
Now the ajax request doesnt take too long![image](https://cloud.githubusercontent.com/assets/4494509/9417555/53281f66-481b-11e5-8da7-bf5eb10266ea.png)
But for the total scripting and repaint times, you drop a couple of frames, causing that noticeable lag.