hilongjw / vue-progressbar

A lightweight progress bar for vue
http://hilongjw.github.io/vue-progressbar
MIT License
1.46k stars 162 forks source link

Loading finish first before page loaded #92

Open bagaskarala opened 4 years ago

bagaskarala commented 4 years ago

I'm using this in App.vue, but when i load heavy page on slow connection then this loading will finish first before my page. How to solve this?

rajeshwarpatlolla commented 4 years ago

I too have similar issue. The loading is finished even before the api call returned response.

Vue.use(VueProgressBar, {
  color: '#288200',
  failedColor: '#f52753',
  thickness: '4px',
  autoRevert: true,
  location: 'top',
});

This is my configuration.

tkhquang commented 4 years ago

autoFinish default is set to true, so you have to add autoFinish: false to the options.

See #25 and #63 for more details