TLDR - Is there ANY other way to do a preload key request with wix. PLEASE! It shaves off so much time it's insane.
So running the google pagespeed test, it tells me to use preload key requests to speed up the website. "Preload key requests 14.04 s Consider using <link rel=preload> to prioritize fetching resources that are currently requested later in page load."
It literally would increase page load time by 14 seconds, which is ridiculous.
I was able to pop this code line into the 'tracking and analytics' because that's the easiest way to get an html code on all pages. <link rel='preload' href="https://www.hydrochemsystems.com/_partials/wix-bolt/1.2670.0/node_modules/santa-wix-code/dist/bolt-worker.js>
It works on every page except the home page. The number within the code "1.2670.0" does seem to change, and I wonder if there's a preload request that's more basic that wouldn't change. It also shows code at the top of the pages when switch between them or on a refresh, causing the menu bar to disappear.
I've tried "<link rel='preload' href="https://www.hydrochemsystems.com/_partials/wix-bolt/1.2687.0/node_modules/santa-wix-code/dist/bolt-worker.js" as="script">" but google says
Warnings: A preload <link> was found for "https://www.hydrochemsystems.com/_partials/wix-bolt/1.2687.0/node_modules/santa-wix-code/dist/bolt-worker.js" but was not used by the browser. Check that you are using the `crossorigin` attribute properly.
I've tried the crossorigin as crossorigin, crossorigin="anonymous" crossorigin="" and crossorigin="use-credentials".
I don't know what else to do but this is a massive game changer if I can just get it to work and not mess up the refresh.