Skip to content

Conversation

@AlexGarneau
Copy link
Contributor

@AlexGarneau AlexGarneau commented Apr 16, 2025

Added precacheImage calls to icons, moved them to didChangeDependencies, and went ahead and moved old, disused precacheImage code in there as well to see if it works.

Did some modifications to the precache code, making it run asyncronously (somehow helps) and cache several more images. Also cleaned the code up a fair bit, universalizing the precache code to work for both icons and illustrations and throw errors if things go wrong. The big change was the correction to the URLs; initially it didn't work because it tried to load the files from the wrong source.

Tested mainly on Web, as the precache only runs if kIsWeb = true.

…es, and went ahead and moved old, disused precacheImage code in there as well to see if it works.
@AlexGarneau AlexGarneau self-assigned this Apr 16, 2025
@AlexGarneau AlexGarneau marked this pull request as draft April 16, 2025 22:44
@AlexGarneau AlexGarneau changed the base branch from main to minor-updates August 27, 2025 18:35
@AlexGarneau AlexGarneau marked this pull request as ready for review August 28, 2025 16:15
@AlexGarneau AlexGarneau requested a review from esDotDev August 28, 2025 16:18
@AlexGarneau
Copy link
Contributor Author

Poked a quick fix into the precache images branch. Simply upped the aforementioned maxWidth to 10000. Tested it vigorously to ensure it didn't do anything bad as a side-effect.
Also tested precache vigorously, making sure it actually did cache and load images via cache. Kept the test code commented in and pushed an update.

@AlexGarneau AlexGarneau changed the base branch from minor-updates to main October 30, 2025 16:44
AlexGarneau and others added 5 commits October 30, 2025 10:45
Merge issues with minor-updates branch, which we originally based precache on but never pushed. Reverting those changes so that we can push those updates in their own PR.
Merge issues with minor-updates branch, which we originally based precache on but never pushed. Reverting those changes so that we can push those updates in their own PR.
Last file that needed this treatment.
@AlexGarneau AlexGarneau merged commit ed17781 into main Oct 30, 2025
@AlexGarneau AlexGarneau deleted the accessability-pass-cache branch October 30, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants