As described in this Vue core issue (https://github.com/vuejs/core/issues/10764), using the src attribute before loading results in the lazy-loading being inconsistent across loads. This PR moves the src tag to the last position in the element.
I tested the behavior before and after the change in the playground to confirm it is working correctly. If you want I can also commit the playground page for reference.
Feel free to correct me on anything I might have done wrong, be it in the code or while making this PR. I'm not very experienced with the process of contributing to public repos yet!
As described in this Vue core issue (https://github.com/vuejs/core/issues/10764), using the
src
attribute beforeloading
results in the lazy-loading being inconsistent across loads. This PR moves thesrc
tag to the last position in the element.I tested the behavior before and after the change in the playground to confirm it is working correctly. If you want I can also commit the playground page for reference.
Feel free to correct me on anything I might have done wrong, be it in the code or while making this PR. I'm not very experienced with the process of contributing to public repos yet!