dahlia / fedify

ActivityPub server framework in TypeScript
https://fedify.dev/
MIT License
493 stars 19 forks source link

Preload frequently used context documents #74

Closed dahlia closed 3 months ago

dahlia commented 3 months ago

For now, Fedify fetches any required JSON-LD context documents at least once. Although they are cached after once loaded, it's still inefficient at very first time, and when the network condition is sometime unreliable, it blocks everything Fedify does.

So, we should preload and bundle frequently used JSON-LD context documents. Here's the list of contexts we need to bundle: