perf: move timeago script to bottom
This commit is contained in:
parent
b6593651a8
commit
cff0caec1d
3 changed files with 11 additions and 6 deletions
|
@ -148,7 +148,7 @@
|
||||||
<!-- threads specific static css-->
|
<!-- threads specific static css-->
|
||||||
{% include "styles.html" %}
|
{% include "styles.html" %}
|
||||||
|
|
||||||
{% include "import-map.html" %}
|
<!-- {% include "import-map.html" %} -->
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -200,6 +200,10 @@
|
||||||
<p>Rendered on {{ render_date }} in Europe/Amsterdam</p>
|
<p>Rendered on {{ render_date }} in Europe/Amsterdam</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<script type="module">
|
||||||
|
import TimeAgo from "https://esm.sh/v135/@github/relative-time-element@4.4.0/es2022/relative-time.js"
|
||||||
|
customElements.define('relative-time', TimeAgo)
|
||||||
|
</script>
|
||||||
<script type="module" src="{{ url_for('threads.static', filename='enhance-content.js') }}">
|
<script type="module" src="{{ url_for('threads.static', filename='enhance-content.js') }}">
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
<!-- threads specific static css-->
|
<!-- threads specific static css-->
|
||||||
{% include "styles.html" %}
|
{% include "styles.html" %}
|
||||||
|
|
||||||
{% include "import-map.html" %}
|
<!-- {% include "import-map.html" %} -->
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -194,6 +194,11 @@
|
||||||
</p>
|
</p>
|
||||||
<p>Rendered on {{ render_date }} in Europe/Amsterdam</p>
|
<p>Rendered on {{ render_date }} in Europe/Amsterdam</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<script type="module">
|
||||||
|
import TimeAgo from "https://esm.sh/v135/@github/relative-time-element@4.4.0/es2022/relative-time.js"
|
||||||
|
customElements.define('relative-time', TimeAgo)
|
||||||
|
</script>
|
||||||
<script type="module" src="{{ url_for('threads.static', filename='enhance-content.js') }}">
|
<script type="module" src="{{ url_for('threads.static', filename='enhance-content.js') }}">
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -5,7 +5,3 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="module">
|
|
||||||
import TimeAgo from "https://esm.sh/v135/@github/relative-time-element@4.4.0/es2022/relative-time-element.mjs"
|
|
||||||
</script>
|
|
Loading…
Reference in a new issue