Using third party libraries by dynamic imports

Continuing the discussion from `processFrontMatter` creates undesired line break for long strings:

I think that is very smart from @mnaoumov . My main concern is if the library will be fetched every time or if it will be cached somehow?

I just checked when you reimport the same url again, it doesn’t make network calls anymore. Even in airplane mode it imports the same instance of the module

That is awesome! I would love to know who is responsible of doing the caching. When airplane mode you mean on your phone or in your laptop?

  1. Caching is done via JavaScript loader.

  2. My laptop has airplane mode, so I could quickly ensure that no network calls are made

1 Like