Disable filter textbox until pageload.

For channels with many thousands of videos, it can be a while
before the DOM is fully parsed and ready to go. It is annoying
to type in the box and find that it doesn't work yet, since the
script tag comes after body.
Why not move the script above body? Because I don't want to,
and because you'd be filtering from an incomplete list of
videos anyway.
This commit is contained in:
voussoir 2020-08-28 16:21:42 -07:00
parent 25e9975926
commit 65e0d58576

View file

@ -236,7 +236,7 @@ https://stackoverflow.com/a/35153397
<div id="video_cards">
<center><input type="text" id="search_filter"/></center>
<center><input disabled class="enable_on_pageload" type="text" id="search_filter"/></center>
<center><span id="search_filter_count">{{videos|length}}</span> items</center>
{% for video in videos %}