Skip to content
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

Webinterface is quite cpu consuming #711

Open
klauweg opened this issue Oct 31, 2023 · 4 comments
Open

Webinterface is quite cpu consuming #711

klauweg opened this issue Oct 31, 2023 · 4 comments

Comments

@klauweg
Copy link

klauweg commented Oct 31, 2023

While running several scripts there is considerable cpu load from webbrowser.
Even if there is no activity from the scripts.
Is this caused by the spinners?
They look a bit confusing anyway because to me it looks like there is user interaction necessary.
If you have 20-30 scripts running, you are spinning yourself soon ;-).
Is there a chance to turn it off?

@Mrs-Feathers
Copy link

Mrs-Feathers commented Oct 31, 2023 via email

@bugy
Copy link
Owner

bugy commented Nov 2, 2023

Hi @klauweg, i think you can modify css styles (see https://github.com/bugy/script-server/wiki/Themes) and the following style there:

.main-app-sidebar .scripts-list a.collection-item .menu-item-state.executing {
    display: none;
}

I.e. in the theme.css file, you can only add the code above and that's it. Please remember, to reload the browser page cache after changing the style

@klauweg
Copy link
Author

klauweg commented Nov 2, 2023

That was easy :-).
Of course it would be useful to have a sort of static indicator for running scripts.
But i think i will find this myself.
Thank you!

@klauweg
Copy link
Author

klauweg commented Nov 2, 2023

I don't know if this is very clever, but it works:

.main-app-sidebar .scripts-list a.collection-item .menu-item-state.executing {
    background-image: url("../theme/run-button.png");
        background-size: cover;
}
.main-app-sidebar .scripts-list a.collection-item .menu-item-state.executing .preloader-wrapper.active { display:none; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants