From df09b0a995bf2a35a60736732c5e22d0c09f0a4b Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Wed, 13 Feb 2019 18:40:02 -0800 Subject: [PATCH] perf: prefetch all internal links (#981) --- src/routes/_components/NavItem.html | 1 + src/routes/_components/NotLoggedInHome.html | 2 +- src/routes/_components/community/PageListItem.html | 2 +- src/routes/_components/compose/ComposeAuthor.html | 5 +++-- src/routes/_components/profile/AccountProfileDetails.html | 2 ++ src/routes/_components/search/SearchResult.html | 4 ++-- src/routes/_components/settings/SettingsListButton.html | 2 +- src/routes/_components/settings/SettingsNavItem.html | 3 ++- src/routes/_components/status/StatusAuthorName.html | 3 ++- src/routes/_components/status/StatusDetails.html | 2 ++ src/routes/_components/status/StatusHeader.html | 3 ++- src/routes/_components/status/StatusMentions.html | 1 + src/routes/_components/status/StatusRelativeDate.html | 1 + src/routes/_components/status/StatusSidebar.html | 3 ++- src/routes/_pages/settings/instances/index.html | 4 ++-- 15 files changed, 25 insertions(+), 13 deletions(-) diff --git a/src/routes/_components/NavItem.html b/src/routes/_components/NavItem.html index ab2ada6..e879bbc 100644 --- a/src/routes/_components/NavItem.html +++ b/src/routes/_components/NavItem.html @@ -2,6 +2,7 @@ aria-label={ariaLabel} aria-current={selected} on:click="onClick(event)" + rel="prefetch" {href} > diff --git a/src/routes/_components/community/PageListItem.html b/src/routes/_components/community/PageListItem.html index 5fd22dd..df733fb 100644 --- a/src/routes/_components/community/PageListItem.html +++ b/src/routes/_components/community/PageListItem.html @@ -1,5 +1,5 @@
  • - + diff --git a/src/routes/_components/compose/ComposeAuthor.html b/src/routes/_components/compose/ComposeAuthor.html index a33e9de..4c1eea0 100644 --- a/src/routes/_components/compose/ComposeAuthor.html +++ b/src/routes/_components/compose/ComposeAuthor.html @@ -1,9 +1,10 @@ - + @@ -72,4 +73,4 @@ } } } - \ No newline at end of file + diff --git a/src/routes/_components/profile/AccountProfileDetails.html b/src/routes/_components/profile/AccountProfileDetails.html index 2eb5970..51dbe48 100644 --- a/src/routes/_components/profile/AccountProfileDetails.html +++ b/src/routes/_components/profile/AccountProfileDetails.html @@ -11,6 +11,7 @@
  • +
  • @@ -33,4 +33,4 @@ padding: 15px 10px; } } - \ No newline at end of file + diff --git a/src/routes/_components/settings/SettingsListButton.html b/src/routes/_components/settings/SettingsListButton.html index 080fdf1..b635dfd 100644 --- a/src/routes/_components/settings/SettingsListButton.html +++ b/src/routes/_components/settings/SettingsListButton.html @@ -1,4 +1,4 @@ - + {label} diff --git a/src/routes/_components/settings/SettingsNavItem.html b/src/routes/_components/settings/SettingsNavItem.html index fa29798..2c63ae4 100644 --- a/src/routes/_components/settings/SettingsNavItem.html +++ b/src/routes/_components/settings/SettingsNavItem.html @@ -1,5 +1,6 @@ {label} @@ -19,4 +20,4 @@ ariaLabel: ({ page, name, label }) => page === name ? `${label} (current page)` : label } } - \ No newline at end of file + diff --git a/src/routes/_components/status/StatusAuthorName.html b/src/routes/_components/status/StatusAuthorName.html index 4a91db6..71b515a 100644 --- a/src/routes/_components/status/StatusAuthorName.html +++ b/src/routes/_components/status/StatusAuthorName.html @@ -1,4 +1,5 @@ \ No newline at end of file + diff --git a/src/routes/_components/status/StatusDetails.html b/src/routes/_components/status/StatusDetails.html index f837e3c..f8a857d 100644 --- a/src/routes/_components/status/StatusDetails.html +++ b/src/routes/_components/status/StatusDetails.html @@ -25,6 +25,7 @@ {/if} {/if} @@ -33,6 +34,7 @@ {numReblogs} diff --git a/src/routes/_components/status/StatusHeader.html b/src/routes/_components/status/StatusHeader.html index baa3583..b7373c4 100644 --- a/src/routes/_components/status/StatusHeader.html +++ b/src/routes/_components/status/StatusHeader.html @@ -13,6 +13,7 @@ {:else} @@ -124,4 +125,4 @@ } } } - \ No newline at end of file + diff --git a/src/routes/_components/status/StatusMentions.html b/src/routes/_components/status/StatusMentions.html index 353b2b9..345dfd4 100644 --- a/src/routes/_components/status/StatusMentions.html +++ b/src/routes/_components/status/StatusMentions.html @@ -8,6 +8,7 @@ {/if} @{mention.username} diff --git a/src/routes/_components/status/StatusRelativeDate.html b/src/routes/_components/status/StatusRelativeDate.html index 2f5f9ca..6f898e0 100644 --- a/src/routes/_components/status/StatusRelativeDate.html +++ b/src/routes/_components/status/StatusRelativeDate.html @@ -1,5 +1,6 @@

    Add another instance

    +

    Add another instance

    {:else}

    You're not logged in to any instances.

    -

    Log in to an instance to start using Pinafore.

    +

    Log in to an instance to start using Pinafore.

    {/if}