diff --git a/client/src/components/ExternalLink.tsx b/client/src/components/ExternalLink.tsx index f9dca60..cccda4e 100644 --- a/client/src/components/ExternalLink.tsx +++ b/client/src/components/ExternalLink.tsx @@ -1,6 +1,6 @@ /** - * Wrapper around an tag leading to an external site. Always opens in a new - * tab. + * Wrapper around an `` tag leading to an external site. Always opens in a + * new tab. */ const ExternalLink = ({ to, diff --git a/client/src/components/PrefetchLink.tsx b/client/src/components/PrefetchLink.tsx index 5d169ff..f3941ab 100644 --- a/client/src/components/PrefetchLink.tsx +++ b/client/src/components/PrefetchLink.tsx @@ -4,8 +4,8 @@ import { A } from "@solidjs/router" import { dataSaver } from "../stores/dataSaver" /** - * Wrapper around links that prefetches the route during the next available idle - * frame. + * Wrapper around internal links that prefetches the route during the next + * available idle frame. */ const PrefetchLink = ({ to, @@ -19,7 +19,6 @@ const PrefetchLink = ({ children: JSX.Element }): JSX.Element => { onMount(() => { - // Only prefetch if the user is not using the Save-Data header. if (!dataSaver) { requestIdleCallback(() => { import(`../routes/${file}.tsx`)