Skip to content

Commit

Permalink
Minor comment cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwayne committed Oct 31, 2024
1 parent 5a606e5 commit dc7e408
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client/src/components/ExternalLink.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Wrapper around an <a> tag leading to an external site. Always opens in a new
* tab.
* Wrapper around an `<a>` tag leading to an external site. Always opens in a
* new tab.
*/
const ExternalLink = ({
to,
Expand Down
5 changes: 2 additions & 3 deletions client/src/components/PrefetchLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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`)
Expand Down

0 comments on commit dc7e408

Please sign in to comment.