-
-
Notifications
You must be signed in to change notification settings - Fork 432
<link rel="preload"> is missing when exporting #919
Comments
The issue is here: Line 230 in cfa5a42
We need to support both I don't use |
I tried fixing this with
The Setting the Making a PR now. |
This should be fixed now in 0.28.9. |
Describe the bug
Issue #402 and PR #568 added
<link rel="preload">
to the output. Currently I am unable to see this anywhere.#402 was adding it to the
sapper export
command. But it is not showing on export, or when running develop, or using build/start...It appears that the code in #568 is now failing. This does appear to be a bug that was not caught with regression.
Logs
Please include browser console and server logs around the time this bug occurred.
To Reproduce
Run export on any site and notice that the expected
<link rel="preload">
is missing insapper 0.2.7.8
.You can view source, use inspector, or check Google page Speed Insights.
You can see this on a live site here -
https://khromedev-72myozpsp.now.sh/
GitHub Repo -
https://github.com/khrome83/khrome.dev/tree/svelte-poc/www
You can see issue brought up in Google Page Speed Insights - https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fkhromedev-72myozpsp.now.sh%2F
Expected behavior
I expect the following to be in the
<head>
based on #402Information about your Sapper Installation:
Your browser and the version: Chrome 56
Your operating system: OS X 10
Your hosting environment: Local, Now v2
Sapper version 0.27.8
Svelte version 3.9.1
Exported App
Using Rollup
Severity
Medium Severity. Can drastically reduce page load times.
The text was updated successfully, but these errors were encountered: