Comments (13)
Initial render time? Or is updating also slow?
Try to use CSSLayouts inside GridStackLayout to improve speed. Any Vertical/Horizontal/GridLayouts will cause slowness fast inside dynamic layouts.
Please provide your component hierarchy structure.
from gridstack.
Only initial render time.. once the screen is rendered everything works pretty close to good
from gridstack.
This is my component hierarchy structure:
from gridstack.
Try to get rid of layouts with only have one child.
Eg. you have many VerticalLayouts with just one HorizontalLayout as child. Why not remove the unneeded vertical layout. If you need to do some wrapping, use CSSLayout.
Vertical/Horizontal/GridLayout do some JavaScript based delayed layouting. So more you have those, slower it gets.
from gridstack.
Thanks for your answer! As you can see at the picture below - I have replaced nested layouts of GridStack with CssLayout:
but the performance still pretty much the same as bad :(
from gridstack.
So no measurable difference?
from gridstack.
Unfortunately I don't know how to measure exact time of client side rendering with Vaadin but visually I can't see any major difference.. the rendering still takes a lot of time.
With 10 elements inside of central GridStack my view renders pretty fast.. but with 80 elements pretty slow..
from gridstack.
If you only have csslayouts with images, links, labels and buttons there, then I'm not quite sure what makes it so slow.
Would help if you could create simple code example, that I could use to reproduce the issue.
from gridstack.
I noticed right now that different buttons/links/images creation inside of elements that are placed inside of GridStack make it slow. I have disabled a few types of buttons/links and this improved the performance of view rendering. Right now performance is not perfect but much better. How buttons can affect performance ?
from gridstack.
I have sent you a demo project. Thanks !
from gridstack.
I have to try it out
from gridstack.
Thanks for your help! I'm really stuck right now with this performance issue of my application :(
from gridstack.
Are there any recommendations regarding this?
from gridstack.
Related Issues (20)
- Elements layout question HOT 3
- top and bottom paddings for GridStack demo HOT 8
- Hover effects for GridStack grid-stack-item HOT 1
- Optional loading of JQuery and JQuery-ui HOT 1
- Resize component in GridStack without moving component down HOT 4
- Automatically resize the component attached to GridStack in order to show content without vertical scrollbar
- Bottom padding for GridStack container
- Move components to a certain position HOT 8
- Resizing a component under special conditions causes it to move up HOT 1
- Component resizing HOT 2
- DragHandle option is forgotten on page refresh HOT 5
- GridStackLayout#getComponent did not find correct component for given coordinate.
- Ghost box left after removing component
- Disable resize
- Create child read only state
- Some issues HOT 4
- Responsive HOT 1
- resources loaded twice HOT 3
- GridStack sorting with a visual transition effect HOT 12
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 gridstack.