react-snap icon indicating copy to clipboard operation
react-snap copied to clipboard

Improve preloading strategy

Open stereobooster opened this issue 7 years ago • 6 comments
trafficstars

Improve preconnect, dns-prefetch functionality, maybe use media queries. Example: load in small screen - capture all assets, add with a media query for the small screen, load in big screen add the rest of the assets with a media query for the big screen.

stereobooster avatar Jan 07 '18 10:01 stereobooster

  • https://github.com/thedaviddias/Front-End-Performance-Checklist
  • https://medium.com/dev-channel/hacking-user-perception-to-make-your-websites-and-apps-feel-faster-922636b620e3

stereobooster avatar Aug 12 '18 20:08 stereobooster

Is there anyway to get the preconnect link tag to use https protocol instead of http?

mrYakamoto avatar Sep 20 '18 01:09 mrYakamoto

Is there anyway to get the preconnect link tag to use https protocol instead of http?

Isn't it doing it right now? What is your issue?

stereobooster avatar Sep 20 '18 07:09 stereobooster

Isn't it doing it right now? What is your issue?

My content API returns protocol-relative image urls like... //images.ctfassets.net/foo.jpg When react-snap runs, i get a preconnect tag for <link href="http://images.ctfassets.net" rel="preconnect"> Then, since I'm enforcing https:// on my site, I get a mixed content warning for insecure link urls

mrYakamoto avatar Oct 03 '18 17:10 mrYakamoto

Also having the issue of mixed content warning for insecure link urls — also pre-loads some things as http (like hotjar and wistia links) but the page loads in https. @mrYakamoto did you find a solution or workaround for this? Thanks!

valentin7 avatar Sep 17 '19 00:09 valentin7

I am also getting a mixed content warning on netlify when the site builds. I get image urls like: src="http://localhost:45678/static/media/01-profile.png"

The site is currently entirely front-end, and I've chosen to load everything via JS objects. I've used require("../img/01-profile.png") in the object's image values to make sure it works locally with relative paths.

Has there been any development on this issue?

JeffMusgrave avatar Jul 11 '20 04:07 JeffMusgrave