deprecate / electric-base-components

⚡ UI Components for Electric
https://npmjs.com/electric-base-components
0 stars 3 forks source link

Fixes https://github.com/electricjs/electric/issues/62 #10

Closed ygorcosta closed 7 years ago

ygorcosta commented 7 years ago

Hey guys, about this issue... idk if it's the best solution but it fixes the problem. I realized that Javascript had not yet been fully loaded when ReadingProgress is created, so... I did this.

robframpton commented 7 years ago

Hey @ygorcosta,

Can you change it to an event listener for the load event instead?

zenorocha commented 7 years ago

@ygorcosta can you confirm that this works not only on the first load, but also when you start navigating?

zenorocha commented 7 years ago

Besides that, have you tried DOMContentLoaded event?

ygorcosta commented 7 years ago

yeah, it's not working well. I'll work on another solution for this problem