As for now, the actual DOM manipulation is always performed client-side as the current implementation of the directive requires the document context. While loading, a data-lettering="loading" attribute is added to the elements to hide it before the directive is bound.
A future implementation may use VNode manipulation natively to remove the document dependency.
I'm getting a Cannot add property data-lettering, object is not extensible error while using this with the occasional Nuxt project I do, so this would be greatly appreciated! 👍
As for now, the actual DOM manipulation is always performed client-side as the current implementation of the directive requires the document context. While loading, a
data-lettering="loading"
attribute is added to the elements to hide it before the directive is bound.A future implementation may use VNode manipulation natively to remove the document dependency.