Closed avoThomas closed 4 years ago
+1
Hi @avoThomas ,
The google viewer has some issues with first time loading. I don't exactly know why and whats the real problem. I implemented the reload function because of this and made this work-around configurable by be able to disable this reloading and configuring your own interval.
Could you clone this repository and set your document url in demo application. Maybe you'll find the problem and make a PR 😄. If you have an example of a document that has this problem, you can send me the url and I can do some tests in the weekend as well.
Hi @avoThomas, @kaleu50 I tried several documents on the internet to try to reproduce your problem. I couldn't reproduce. Is there a way I can test with the document you are using? Or do you have Stackblitz or something were I can reproduce the problem?
When using the Google viewer to try and load a file, it doesn't always render the file first time or after a few tries. Whats confusing is that the loaded event is emitted from the doc viewer even though I still can't see the document.
The viewer has been implemented as follows:
And then the following is output to my console: The top iframe is when it loads correctly and the bottom iframe is when it doesn't load correctly.
We would use the office viewer as we want to display docx/doc files, but that has a cookies banner at the top.