-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optimize some option types to prevent slow admin pages #442
Comments
Thank you for looking after! Il test anything you need me to. I have 4 thz-background options , for body, wrapper, header, footer
I can send you this option if you like to test |
suggestion , you might want to do this workaround with underscore combo for tabs as well. show selected tab first , load other on next click. |
And while you at it , see this please , add page edit screen , 6 to 8 sec average load time without any additional option, no additional plugins , just unyson last to load maps js unyson disabled , load time 1.04 sec now imagine how it is with page options in there |
and that is an empty page, with builder used, add 10 - 20 options combined with multies and you done |
I made the changes in I will change |
options admin went from 5.76 to 4.75 sec average it is helpful but not significant it is better performance than previously that is sure but not a game changer |
one more culprit found, color pickers , HUGE slow down , site went from 4.75 to 2sec I have 22 color pickers , 8 from them are included in typography option, |
and the extra load goes to the 'rgba-color-picker' , regular color-picker is faster than rgba |
and that thnx to ui slider included in rgba color picker, today I went trough all scripts I have and found that where ever I used any of ui widgets the site load was increased , first I had ui spinner and did not think much of it , used it about 20 times , without it site load was faster 1.3 sec , so I made my own . looks like some ui widgets dont like few scripts we mix them with. but to see my 100+ something options admin load in 2 sec is a suprise. ad least I know where to look now. |
Here in case you want to change rgba picker , this is double the speed , iris is activated only on click
|
Thank you very much for the investigation 💯 |
Any time bud , I want to make Unyson worth my while , so quitting was not an option:) here few more worth checking out try not to use each in jquery this would be ok for each since we need visual reference of a slider I am still digging but the color pickers change was significant improvement. |
Hello, I made changes in rgba-color-picker option-type, many thanks for contribution. We will take into account the other suggestions and will soon do the changes. |
@valeriuzdrobau you might want to do same workaround for color option and get rid of the iris call on load for each, i tested same outside function and works well. |
I don't know why I thought that @danyj @valeriuzdrobau So the problem with |
color option has same issue as rgba , image-picker I doubt you can do anything more to speed that up |
o boy , you guys want to check FF and IE , with hm , anything , any option , popups , multies , slowwwwww |
OK one more to look at and hopefully improve. Options in popups , any popup type. setup json of options to be shown in popup all nice and dandy if you are working on fast machine or dont have tabs or over 10 15 of options in popup. 3 tabs, 10 options , ajax response very slow. Reason is that we wait to render options in ajax instead just getting the values. Can we move this to backbone template instead and repopulate template values on opening? |
I think lazy tabs fixes this. If we will lazy load multi-picker choices there will be issues with scripts which collect values from js (the selectors will not find the required elements in DOM) |
multi-picker
Instead of rendering the options for all choices and
display:none
them showing only current choice, render only current choice in html, the rest store as underscore templates and render on choice change.For e.g. the multi picker option has 7 choices, each choice has 10 options. Instead of rendering 70 options, increasing the DOM size, and showing only current choice's 10 options, render only current choice 10 options and store the rest in some hidden div attributes as underscore templates.
rgba-color-picker
#442 (comment)
The text was updated successfully, but these errors were encountered: