Fix smaller performance issues

This commit is contained in:
2026-02-19 19:03:39 +01:00
parent 91d9fa3a21
commit 88450fd8b6
4 changed files with 74 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}LinkedIn Posts{% endblock %}</title>
<link rel="icon" type="image/png" href="/static/favicon.png">
<link rel="preload" href="/static/tailwind.css" as="style">
<link rel="stylesheet" href="/static/tailwind.css">
<style>
body { background-color: #3d4848; }
@@ -362,5 +363,12 @@
</script>
{% block scripts %}{% endblock %}
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/sw.js').catch(function() {});
});
}
</script>
</body>
</html>