docker / hub-feedback

Feedback and bug reports for the Docker Hub
https://hub.docker.com
233 stars 48 forks source link

Cache Repo Info and Tags #305

Open jaxgeller opened 8 years ago

jaxgeller commented 8 years ago

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

But for the total scripting and repaint times, you drop a couple of frames, causing that noticeable lag.

image

nhsiehgit commented 8 years ago

Thanks for the feedback!

Definitely something worth looking into

ChristopherBiscardi commented 8 years ago

@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:

paint-rectangles

jaxgeller commented 8 years ago

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?