Only fetch workout graphs when accordion is opened to reduce self dos'ing
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="!visible collapse {% if loop.index != 1 %}hidden{% endif %}">
|
<div class="!visible collapse {% if loop.index != 1 %}hidden{% endif %}">
|
||||||
<img src="{{ url_for('workout', user_id=w.user_id, workout_id=w.id) }}" alt="No image">
|
<img src="{{ url_for('workout', user_id=w.user_id, workout_id=w.id) }}" loading="lazy" alt="No image">
|
||||||
<button
|
<button
|
||||||
class="mx-4 mb-4 bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded inline-flex items-center"
|
class="mx-4 mb-4 bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded inline-flex items-center"
|
||||||
hx-delete="{{ url_for('workout', user_id=w.user_id, workout_id=w.id) }}"
|
hx-delete="{{ url_for('workout', user_id=w.user_id, workout_id=w.id) }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user