Comments (13)
Hey, can you reproduce the bug on a simple repro case? Or can you share your client page?
from vorlonjs.
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.
Huge:) I'll check it asap!!
from vorlonjs.
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.
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.
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.
We will soon. The idea is to have a refresh button instead
from vorlonjs.
Would be great!
from vorlonjs.
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.
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.
I'm just finishing up augmenting the print of attributes in the explorer panel, but will jump on this next.
from vorlonjs.
Awesome 👍
from vorlonjs.
Closed by latest commit
from vorlonjs.
Related Issues (20)
- Firefox - Lebowskilebowski HOT 2
- https support
- VorlonJS desktop sudden crashes
- not fully HTTPS support, have request also in HTTP
- Fails to install on a Mac due to error with dependency phantomjs (prebuilt) HOT 6
- Release new version? HOT 2
- Waiting for socket.io to load... HOT 1
- Repeating Console Message
- Add other config options via env vars
- [bug] Uncaught DOMException: Failed to read the 'rules' property from 'CSSStyleSheet': Cannot access rules HOT 1
- probeerror:Error:websocketerror while debugging a website
- Shadow Dom?
- Debugging Outlook Add-in on Android HOT 3
- How can I write a log file in hard disk?
- After the network is disconnected, there is no reconnection.
- Proxy page redirects to invalid page for SPAs
- SSL proxy always returns cannot get
- xhrPanel auto start
- Is it an abandoned project? HOT 2
- how to show content panel like normal page driven by DOM panel in dashboard?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vorlonjs.