Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<link rel=preload> interpreters #179

Open
dfabulich opened this issue Jan 23, 2025 · 0 comments
Open

<link rel=preload> interpreters #179

dfabulich opened this issue Jan 23, 2025 · 0 comments

Comments

@dfabulich
Copy link
Contributor

Apropos #178, we should be able to add a <link rel=preload> to the HTML of https://iplayif.com/?story=https%3A%2F%2Fifarchive.org%2Fif-archive%2Fgames%2Fzcode%2FLostPig.z8 to begin downloading the interpreter script (bocfel.js, glulxe.js, etc.) and its corresponding WASM file (<link rel=preload as=fetch>) in the built-in HTML.

front-page.ts could look up the file out of a cache (especially for IF Archive links), detect the type, and add the preloads to the HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants