Do not export in Browser Exporter if css is not loading properly
Describe the bug
Do not export in Browser Exporter if CSS is not loading properly.
Minimal reproduction
Steps to reproduce the behavior:
- Block one CSS used in Browser Exporter
- Export
You can use https://sli.dev/new to create a new project to reproduce the issue.
Environment
- Slidev version: v52.1.0
- Browser: Chrome
- OS: Linux
If CSS is not loading properly, pop a alert, and wait for several seconds and reload.
What does "Block one CSS used in Browser Exporter" mean? In which case would this happen?
What does "Block one CSS used in Browser Exporter" mean? In which case would this happen?
Block that CSS loading in Devtool Network, Block request URL
Basically, it can reliably simulate the case that CSS loading fails. In my case, vscode ssh port forwarding lost its connection making the export page half loaded. That makes the whole export malformed.
This is what happened when not loading properly. No console log. The slide has 17 pages but only 2 pages appeared in the print.
If you see the /export page, its css is not loading properly either. So I do think it is the css not loading properly. BTW, I am not blocking anything and it happens. CC @kermanx