vue-plugin-render-freeze
npm install vue-plugin-render-freeze
import VuePluginRenderFreeze from 'vue-plugin-render-freeze';
// install
Vue.use(VuePluginRenderFreeze);
You can then use the vue component:
await this.renderFreezeBegin(async () => {
... long time operations
});
or
try {
this.renderFreeze(true);
... long time operations
} finally {
this.renderFreeze(false);
}
MIT