46b85d508a
When we updated to flask 2.0, the default caching time changed to 0. When setting the HTML of a new card side in the DOM, the browser first removes the existing content (including styling), then sends a HTTP request to us to check whether the file has changed or not. By the time the answer has arrived, the browser has repainted without the styling, and thus we get a flicker. A side-effect of reverting to flask 1.x behaviour is that external changes to media files will not be reflected in Anki for an hour, unless Anki is restarted, or the caches are cleared manually with an add-on. An alternative approach would be to pre-fetch the css files like we do with images, but there are other things like fonts to think about as well. Closes #1455 |
||
---|---|---|
.. | ||
aqt | ||
icons | ||
mac | ||
package | ||
tests | ||
tools | ||
.isort.cfg | ||
.pylintrc | ||
bazelfixes.py | ||
BUILD.bazel | ||
dmypy.py | ||
mypy.ini | ||
README.md | ||
runanki.py |
Python's Qt GUI is in aqt/