Giter Site home page Giter Site logo

Comments (13)

deltakosh avatar deltakosh commented on July 19, 2024

Hey, can you reproduce the bug on a simple repro case? Or can you share your client page?

from vorlonjs.

onchainguy-eth avatar onchainguy-eth commented on July 19, 2024

Unfortunately I coudn't give you access to the project where I found this problem but I managed to create a test project with a pretty similar situation. This test project is a lot smaller (in terms of DOM size, JS complexity etc.) so the application does not crash but starts to be very very laggy as soon as VorlonJS is enabled.

You can find the project at https://github.com/seb0zz/ionic-vorlonjs-test

It is an ionic project (http://ionicframework.com/) so to reproduce the problem you need ionic installed which you can simply do by npm install -g cordova ionic. So after you installed ionic, cloned the ionic-vorlonjs-test repository and switched to the directory. You only need to perform an npm install and an then an ionic serve. Your default browser will automatically open and you will see the app.

By default VorlonJS is not enabled in this test project. So you can see how responsive the app reacts before VorlonJS is enabled. To do so go to the www/index.html file of the repository. In line 26 you will find a script tag for vorlon.js loaded from my test Heroku app. If you uncomment this line the app will automatically reload in your browser and VorlonJS will be loaded. You will be able to see the connection in the dashboard on the Heroku app.

Now the exciting part: After enabling VorlonJS you should see that the app is much slower and does not react to clicks, scrolls, etc. as responsive as before. Sometimes it takes seconds until a switch between tabs is visible after clicking.

Just give me a shout if you need more information!

from vorlonjs.

deltakosh avatar deltakosh commented on July 19, 2024

Huge:) I'll check it asap!!

from vorlonjs.

johanalkstal avatar johanalkstal commented on July 19, 2024

Sounds similar to what I'm experiencing when trying vorlon is our Angular application.

When I add the vorlon script, the app becomes unresponsive and the browser asks if I want to stop the http://localhost:1337/vorlon.js script.

from vorlonjs.

deltakosh avatar deltakosh commented on July 19, 2024

It was due to a too frequent DOM dump. I changed the way I synchronize it. You should still notice a slowdown at the beginning when I'm capturing the DOM but then things should be smooth again:)

from vorlonjs.

onchainguy-eth avatar onchainguy-eth commented on July 19, 2024

This fixed the problem for the sample app. Still have the problem with my own app and I think the main difference is that the DOM is much larger than in the test application. What about you @johanalkstal did this fix work for you?

@deltakosh Is there any way to disable the DOM syncing feature easily?

from vorlonjs.

deltakosh avatar deltakosh commented on July 19, 2024

We will soon. The idea is to have a refresh button instead

from vorlonjs.

onchainguy-eth avatar onchainguy-eth commented on July 19, 2024

Would be great!

from vorlonjs.

deltakosh avatar deltakosh commented on July 19, 2024

Pulling in @csuwildcat :)

The idea is to remove
https://github.com/MicrosoftDX/Vorlonjs/blob/master/Plugins/Vorlon/plugins/domExplorer/vorlon.domExplorer.ts#L139
and
https://github.com/MicrosoftDX/Vorlonjs/blob/master/Plugins/Vorlon/plugins/domExplorer/vorlon.domExplorer.ts#L143

and instead add a Refresh button in domExplorer like the one in objectExplorer

from vorlonjs.

onchainguy-eth avatar onchainguy-eth commented on July 19, 2024

And it would be great if the DOM is not initially synced but only at the first click of the "refresh" button or what ever the button name will be ;)

from vorlonjs.

csuwildcat avatar csuwildcat commented on July 19, 2024

I'm just finishing up augmenting the print of attributes in the explorer panel, but will jump on this next.

from vorlonjs.

onchainguy-eth avatar onchainguy-eth commented on July 19, 2024

Awesome 👍

from vorlonjs.

deltakosh avatar deltakosh commented on July 19, 2024

Closed by latest commit

from vorlonjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.