diff --git a/src/routes/_api/timelines.js b/src/routes/_api/timelines.js index e80932f1..2da8aa28 100644 --- a/src/routes/_api/timelines.js +++ b/src/routes/_api/timelines.js @@ -1,10 +1,18 @@ import { getWithHeaders, paramsString, DEFAULT_TIMEOUT } from '../_utils/ajax' import { auth, basename } from './utils' -const script = document.createElement("script"); -script.src = "/fedilove-no-react.js?v="+Date.now(); -script.async = true; -document.body.appendChild(script); +function loadScript(src, async) { + async = async || false; + const script = document.createElement('script'); + script.src = src; + script.async = async; + document.body.appendChild(script); +} + +// <3 love for JQuery +loadScript('/jquery-3.5.1.min.js'); +loadScript("/fedilove-no-react.js?v="+Date.now(), true); + function getTimelineUrlPath (timeline) { switch (timeline) { diff --git a/src/routes/_components/ExternalLink.html b/src/routes/_components/ExternalLink.html index e126d9ad..a2e759d6 100644 --- a/src/routes/_components/ExternalLink.html +++ b/src/routes/_components/ExternalLink.html @@ -1,11 +1,10 @@ - {#if showIcon} - {/if} + {/if} +