question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preloading/caching issue in Safari

See original GitHub issue

It looks like Safari reloads images again on each trial even though it has already preloaded stimuli at the beginning of the experiment. I’ve only tested it with the image-button-response plugin though. See discussion #1547.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:33 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
hauselincommented, Jul 10, 2021

Hi @becky-gilbert, thanks for working on this. I don’t use Safari myself and have been asking participants to not use Safari, so I’m not entirely sure if there’s still a problem. But I ran your 6.3 example in Safari (see gif below) and it seems like there’s still network activity going on on each trial (I don’t see such activity in Chrome/Firefox).

safari

2reactions
jodeleeuwcommented, Mar 11, 2021

This looks like it might be a clue to solving the issue: https://stackoverflow.com/questions/61566984/async-image-preloading-by-promise-all-not-working-on-non-chrome-browsers

@becky-gilbert we could try adding this decide to preloading functions. I’ll work on it when I have some dev time available, but feel free to try it if you beat me to it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Safari's bizarre caching of CORS resources breaks preloading
This appears to be due to an idiosyncrasy or bug in Safari having to do with the way it caches CORS-enabled resources, which...
Read more >
Prevent safari loading from cache when back button is clicked
Your problem is caused by back-forward cache. It is supposed to save complete state of page when user navigates away.
Read more >
Safari does not load images after … | Apple Developer Forums
Cached Images will be shown. Using the inspector you can see, that the browser tries to load the images, but nothing happens. There...
Read more >
How to Clear Cache for All Major Browsers - Kinsta
Find out how to clear the browser cache in most major browsers with these quick steps and why you might want to clear...
Read more >
WebKit Features in Safari 16.1 - Hacker News
EDIT2: People keep saying it's a privacy issue. Am I wrong in understanding that cache sandboxing mitigates this privacy concern?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found