docat icon indicating copy to clipboard operation
docat copied to clipboard

blink issue

Open Ninebell opened this issue 3 years ago • 2 comments

Hello, I'm trying to using this framework for making my documents. But when I change my page, there's some blink. Maybe it's because of the force update. Is there any some solution for fixing it? or Is that in your plan?

https://user-images.githubusercontent.com/41539605/191137504-0e1aea0b-5090-4ac0-89ff-87d6b3899929.mov

Ninebell avatar Sep 19 '22 23:09 Ninebell

isn't that just because there is a different html page loaded?

fliiiix avatar Sep 20 '22 11:09 fliiiix

@fliiiix I made it by sphinx. And other documents site like networkx document page, It doesn't blink. And when I check it in local not hosting, It didn't happen.

Ninebell avatar Sep 21 '22 00:09 Ninebell

As with 1.0.0 we completely reimplemented the frontend. Is this still an issue? @Ninebell

randombenj avatar Apr 14 '23 20:04 randombenj

I think this is still an issue. If you create a simple sphinx site, and serve it via docat and python3 -m http.server, you'll see a blink transition with docat but no blink with python3 -m http.server (tested with Firefox 114 and Chromium 114 on Linux). I'm guessing this is related to how the page is being served out (I've not looked into how the overlays are added).

aragilar avatar Jun 14 '23 01:06 aragilar

Yep, I think it's related to the iframe setup, if I go to http://localhost:8000/doc/project/version/ then the blinking doesn't happen.

aragilar avatar Jun 14 '23 01:06 aragilar

A possible solution would be to stop using an iframe, and use https://nginx.org/en/docs/http/ngx_http_sub_module.html to inject any overlays into the underlying HTML.

aragilar avatar Jun 14 '23 11:06 aragilar

I think this is now fixed with #587 . Feel free to reopen if it's still an issue.

reglim avatar Aug 30 '23 11:08 reglim