Bogdan-Lyashenko / js-code-to-svg-flowchart

js2flowchart - a visualization library to convert any JavaScript code into beautiful SVG flowchart. Learn other’s code. Design your code. Refactor code. Document code. Explain code.
MIT License
7.05k stars 472 forks source link

The demo doesn't work #43

Closed wangmeijian closed 4 years ago

wangmeijian commented 4 years ago

https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/live-editor/index.html The demo doesn't work

Bogdan-Lyashenko commented 4 years ago

Hi @wangmeijian, what exactly doesn't work? Do you see this when open that link? image What browser do you use?

wangmeijian commented 4 years ago

I use chrome 79.0.3945.88, I see that,It's not that it can't run. After the demo was loaded, I waited for about 26 seconds before displaying the SVG on the right, which has poor generation performance. My laptop is MacBook Pro 13

vdumitraskovic commented 4 years ago

I use chrome 79.0.3945.88, I see that,It's not that it can't run. After the demo was loaded, I waited for about 26 seconds before displaying the SVG on the right, which has poor generation performance. My laptop is MacBook Pro 13

Can you try running in different browser? I've just tested the demo in two different browsers on my mobile phone (Motorola Moto X4), and it works without delay. As my phone has less processing power than your laptop, I can only assume that your browser runs an extension that is causing the issue, or you are experiencing network issues.

wangmeijian commented 4 years ago

@smesko85 After loading and rendering, I refresh the page, there's a cache, it still takes a long time to render, I guess it doesn't have much to do with the web, nor does firefox

Berkmann18 commented 4 years ago

@wangmeijian I just tried opening the demo on Opera, Chrome, Brave, Firefox and Vivaldi (on a laptop) and it rendered nearly instantly (except on Opera and Chrome which has 1.5+ times the amount of extensions the others have). So my guess is the same as @smesko85. Try opening the demo in incognito (or where few to no extensions are enabled) and in other browsers to see if it still happens. If it does, then perhaps your connection might be the issue (assuming you have up-to-date browsers).

wangmeijian commented 4 years ago

Maybe. It's really slow to visit github in China