Anki/qt/aqt
Damien Elmes 46b85d508a fix flicker when external CSS used
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
2021-12-14 12:06:16 +10:00
..
browser Add browser action to create note copy (#1535) 2021-12-08 08:40:48 +10:00
data run buildifier/buildozer to tidy up BUILD files 2021-12-14 09:18:24 +10:00
forms Fix Alt-Gr and add shortcut to create copy again (#1544) 2021-12-10 17:52:08 +10:00
operations add unbury_cards() op 2021-12-08 09:44:47 +10:00
qt tweak qrc deprecation warning 2021-12-04 14:35:49 +10:00
__init__.py Fix Alt-Gr and add shortcut to create copy again (#1544) 2021-12-10 17:52:08 +10:00
_macos_helper.py implement a basic native macOS audio recorder 2021-12-07 18:48:24 +10:00
about.py Update about.py (#1533) 2021-12-07 09:01:30 +10:00
addcards.py Add browser action to create note copy (#1535) 2021-12-08 08:40:48 +10:00
addons.py Parse Markdown inside HTML tags in config.md (#1552) 2021-12-13 14:18:12 +10:00
BUILD.bazel run buildifier/buildozer to tidy up BUILD files 2021-12-14 09:18:24 +10:00
changenotetype.py Fix memory leak in AnkiWebView (#1510) 2021-11-29 12:31:37 +10:00
clayout.py Allow <audio> to play without user interaction in accordance to autoplay setting v2 (#1539) 2021-12-08 08:08:56 +10:00
colors.py move remaining Filter button items into sidebar 2021-02-05 18:58:22 +10:00
customstudy.py PEP8 pylib (#1443) 2021-10-22 20:39:49 +10:00
dbcheck.py PEP8 collection.py 2021-06-27 15:12:22 +10:00
deckbrowser.py retire the v1 scheduler 2021-11-24 14:12:56 +10:00
deckchooser.py Fix chooser label not being updated when current notetype/deck renamed (#1452) 2021-10-25 13:23:06 +10:00
deckconf.py convert invariant assertions to if statements 2021-11-25 17:47:50 +10:00
deckdescription.py switch to new-style PyQt scoped enums and Qt6 2021-10-15 12:57:19 +10:00
deckoptions.py work around 'which deck would you like' sticking around on Qt6/macOS 2021-12-06 18:24:38 +10:00
editcurrent.py switch to new-style PyQt scoped enums and Qt6 2021-10-15 12:57:19 +10:00
editor.py Reimplement "Show Duplicates" button in editor (#1550) 2021-12-13 14:06:12 +10:00
emptycards.py Fix memory leak in AnkiWebView (#1510) 2021-11-29 12:31:37 +10:00
errors.py catch all recording errors; mention permission 2021-06-02 12:20:40 +10:00
exporting.py fix check for user exporting into data folder on Windows 2021-11-25 09:30:17 +10:00
fields.py Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00
filtered_deck.py convert invariant assertions to if statements 2021-11-25 17:47:50 +10:00
flags.py use Qt search path instead of resource system 2021-10-12 16:17:08 +10:00
gui_hooks.py fix qt/ pylints 2021-01-07 16:21:50 +10:00
hooks_gen.py symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
importing.py switch to new-style PyQt scoped enums and Qt6 2021-10-15 12:57:19 +10:00
legacy.py run pyupgrade over codebase [python upgrade required] 2021-10-04 15:05:48 +10:00
main.py Use save utils in main window (#1549) 2021-12-13 14:10:24 +10:00
mediacheck.py fix media trash throttling; decrease delay 2021-12-04 09:10:31 +10:00
mediasrv.py fix flicker when external CSS used 2021-12-14 12:06:16 +10:00
mediasync.py PEP8 for rest of pylib (#1451) 2021-10-25 14:50:13 +10:00
modelchooser.py run pyupgrade over codebase [python upgrade required] 2021-10-04 15:05:48 +10:00
models.py switch to new-style PyQt scoped enums and Qt6 2021-10-15 12:57:19 +10:00
mpv.py update platform checks (eg isWin -> is_win) + devMode 2021-11-25 09:06:16 +10:00
notetypechooser.py Remove all_names in notetypechooser (#1501) 2021-11-23 10:27:57 +10:00
overview.py avoid duplicate work in overview screen 2021-11-25 09:01:02 +10:00
package.py ignore a spurious mypy error 2021-10-28 19:19:37 +10:00
pinnedmodules.py update platform checks (eg isWin -> is_win) + devMode 2021-11-25 09:06:16 +10:00
preferences.py update platform checks (eg isWin -> is_win) + devMode 2021-11-25 09:06:16 +10:00
profiles.py convert invariant assertions to if statements 2021-11-25 17:47:50 +10:00
progress.py switch to new-style PyQt scoped enums and Qt6 2021-10-15 12:57:19 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
reviewer.py Allow <audio> to play without user interaction in accordance to autoplay setting v2 (#1539) 2021-12-08 08:08:56 +10:00
schema_change_tracker.py add a bunch of return types 2021-02-01 23:53:23 +10:00
sound.py macOS audio tools no longer reside in audio/ subfolder 2021-12-09 17:33:46 +10:00
stats.py Fix memory leak in AnkiWebView (#1510) 2021-11-29 12:31:37 +10:00
studydeck.py switch to new-style PyQt scoped enums and Qt6 2021-10-15 12:57:19 +10:00
switch.py switch to new-style PyQt scoped enums and Qt6 2021-10-15 12:57:19 +10:00
sync.py convert invariant assertions to if statements 2021-11-25 17:47:50 +10:00
tagedit.py switch to new-style PyQt scoped enums and Qt6 2021-10-15 12:57:19 +10:00
taglimit.py PEP8 for rest of pylib (#1451) 2021-10-25 14:50:13 +10:00
taskman.py avoid importing directly from PyQt5 where possible 2021-10-15 10:47:53 +10:00
theme.py implement a basic native macOS audio recorder 2021-12-07 18:48:24 +10:00
toolbar.py run pyupgrade over codebase [python upgrade required] 2021-10-04 15:05:48 +10:00
tts.py update platform checks (eg isWin -> is_win) + devMode 2021-11-25 09:06:16 +10:00
undo.py fix redo menu item showing undo text 2021-08-04 10:28:45 +10:00
update.py PEP8 for rest of pylib (#1451) 2021-10-25 14:50:13 +10:00
utils.py Add browser action to create note copy (#1535) 2021-12-08 08:40:48 +10:00
webview.py fix webviews sometimes failing to load, by enabling cache 2021-12-08 21:20:39 +10:00
wheel_description.txt move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00
winpaths.py run pyupgrade over codebase [python upgrade required] 2021-10-04 15:05:48 +10:00