-
Notifications
You must be signed in to change notification settings - Fork 8
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
Performance issues when using rwd_attachment_background #30
Comments
@aprokopenko Any help here would be greatly appreciated 😃 |
Hi, Please post your configuration array for the size you get 2 seconds delay. |
@aprokopenko Here you go.
It happens on each page load. |
It's really weird, it should take a cropped image and do not generate it again, so it should be pretty fast. How big is your postmeta table? (how many rows) |
|
Then need to debug RwdImage class itself (background() ) method to find out what's wrong. It's hard to guess. |
How can I help you debug? |
If it's okay - write me an email with credentials to your server, url and admin credentials and I will take a look next week. (Tomorrow I will be to busy) |
With access to your server, I found an issue - for retina sizes it always runs a resize again, if the original image was smaller than the required retina size. This is fixed in 1.6.4! |
Thank you @aprokopenko |
The function
rwd_attachment_background
takes more than 2s to load for some images and it's faster for some images.We're using a timing function to calculate the performance, the setup looks like this:
The responses are over 2s for some images.
Following are some examples:
.hero-banner-7 Class Time: 0.00051212310791016 Secs, Bg Time: 2.0852770805359 Secs
.hero-banner-9 Class Time: 0.00041794776916504 Secs, Bg Time: 2.2101640701294 Secs
.hero-banner-11 Class Time: 1.0967254638672E-5 Secs, Bg Time: 0.39931702613831 Secs
.services-388 Class Time: 0.00033903121948242 Secs, Bg Time: 0.31205105781555 Secs
Can you help us figure out why some images are taking a long time to load while some load faster even when using the same image size?
The text was updated successfully, but these errors were encountered: