-
Notifications
You must be signed in to change notification settings - Fork 19
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
Plugin causes performance issues #152
Comments
I've gone back and forth with creating inline vs static CSS and the upside is inline CSS is less problematic on a wider variety of servers, including WordPress VIP hosts. |
How about having both options so people can chose what works best for them? |
FWIW |
Thanks. I get lots of these in the php slow log. Perhaps they aren’t being cached then? Any way to debug this? |
I'm not familiar with a PHP |
PHP itself: |
When you say slow, what are the actual times running the function? once, ten times, etc. |
It's a separate issue but I'm also observing that the recent changes to this plugin are causing an ( It's not a significant performance impact on its own, but I'd think we shouldn't have to update any content on a normal frontend page view. @afragen I can make a new issue for this if you'd prefer to keep this isolated to the originally described issue |
Might be best to create a new issue. |
sorry missed this - constantly over 2 seconds execution time. I commented out the above lines and the issue (mostly) went away. |
Plugin constantly triggers the PHP slow log:
The line 189 being:
line 189 looks like its part of a function that should have been removed:
and line 159 being:
I understand this is because the plugin creates inline CSS every time the page loads.
Is there a way to generate static CSS in the file and embed it in HEAD?
The text was updated successfully, but these errors were encountered: