easy-markdown-editor icon indicating copy to clipboard operation
easy-markdown-editor copied to clipboard

about preview img

Open l5769389 opened this issue 4 years ago • 2 comments

after set previewImagesInEditor:true or toggle side by side . if I upload a img. everytime I input anything,the image will load. it's like the img is blink。how to solve this?

l5769389 avatar Jan 09 '21 06:01 l5769389

I also have the 'img blink' problem at the preview side when using side-by-side mode. When i input new content to the editor side, the preview side will refresh the image.

Finally, I find that i forget to able the cache using in chrome network config

ryankolter avatar Jan 16 '22 10:01 ryankolter

When changing something in the editor side, the preview side needs to update the rendered markdown, including any images. Because images take a short time to download and render, that results in a noticeable blink.

Make sure the image host allows caching (cache-control, etag, etc) and your browser uses it, that will stop most of the image blinking.

Ionaru avatar Jan 16 '22 12:01 Ionaru