engine_components icon indicating copy to clipboard operation
engine_components copied to clipboard

Can I get rid of fetch()?

Open is0263rf opened this issue 1 year ago • 1 comments

Why does this source code do fetch() to fetch fonts and css? I want to eliminate fetch() so that it can be used in offline mobile apps.

https://github.com/ThatOpen/engine_components/blob/fc953a6fce8e2160b690a58333a65144a9ac1914/src/ui/UIManager/index.ts#L150-L163

is0263rf avatar Apr 24 '24 08:04 is0263rf

Why does this source code do fetch() to fetch fonts and css?

It's used to style the UI.

I want to eliminate fetch() so that it can be used in offline mobile apps.

You could use https://www.npmjs.com/package/patch-package to load fonts and css from a local file, or better should be included in the repo.

orazio1234 avatar May 02 '24 12:05 orazio1234

Fixed!

agviegas avatar Jun 19 '24 09:06 agviegas