Embed / transclusion caching

Use case or problem

When embedding fragments from larger files the embed site can get artifacts like a very long white space that you have to scroll for a long time to get to content.

I’m not sure what causes the bug, but there seems to be a performance problem related to embeds (e.g. does the whole file get reparsed?)

Proposed solution

I think a relevant class of performance problems could potentially be solved by caching the embedded content. Since each embed site gets an identifier, invalidating these caches can be done when the corresponding block gets edited.

Current workaround (optional)

Avoid embedding. Otherwise, closing and reopening embedding site file may fix the rendering issues.