-
Notifications
You must be signed in to change notification settings - Fork 815
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
Carousel optimizations #7943
Carousel optimizations #7943
Conversation
and instead call one big `get_posts()` call for fewer db queries. Props @westi for the suggestion.
get_posts already sets that to the number of array items passed into include.
Comparing this branch to master with Query Monitor, I'm not actually seeing any decrease in the number of queries. Maybe there's some optimization already going on behind the scenes here that makes this redundant? |
Even if this doesn't save any queries, we're at the least shifting to a single Let's get this in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Summary: This merges this commit to the css file - adbde22 It also includes manual resolution for the divergent files: - `mu-plugins/carousel/jetpack-carousel.php` - significant commits: - #5469 - 728c96f - 4b70301 - 7fc7ebd - b4ad963 - adbde22 - `mu-plugins/carousel/jetpack-carousel.js` - significant commits: - #8329 - #7943 - #8509 Test Plan: Steps: - Add an gallery widget to a site. - Click on an image in the gallery - The carousel should open and the navigation should work as expect. - Check the dev console for any JS errors Reviewers: dereksmart, zinigor Reviewed By: zinigor Subscribers: zinigor, brbrr, dereksmart Differential Revision: https://[private link] Merges r174217-wpcom.
* Likes: update Carousel to remove Likes support, to match Jetpack. Resolve divergences from Jetpack as well for related files. Fixes #7133. Merges r133276-wpcom. * Carousel: better Jetpack JS hiding, see r133276. Merges r133288-wpcom. * Carousel: revert part of r133276 where galleries are auto closed. Reported in Slack: https://a8c.slack.com/archives/triage/p1459368181000158 Jetpack related change: 36e529d Merges r133533-wpcom. * Jetpack: Sync carousel module changes Summary: @michiecat mentioned today that a client was having an issue where opening a gallery, closing a gallery, and then clicking the back button was reopening the gallery. It looks like we have fixed this in Jetpack, but we need to sync those changes back to WPCOM so our WP.com and VIP users can get those changes. Test Plan: Check out patch. Sandbox site. Open gallery. Navigate through slides. Close gallery. Hit back button. Gallery should not open. **Bonus feature** Single images linked to the attachment URL should now open in a lightbox. via #5469 Reviewers: samhotchkiss, dereksmart, eliorivero Reviewed By: dereksmart, eliorivero Differential Revision: https://[private link] Merges r147170-wpcom. * Carousel: merge changes from Jetpack Summary: This merges this commit to the css file - adbde22 It also includes manual resolution for the divergent files: - `mu-plugins/carousel/jetpack-carousel.php` - significant commits: - #5469 - 728c96f - 4b70301 - 7fc7ebd - b4ad963 - adbde22 - `mu-plugins/carousel/jetpack-carousel.js` - significant commits: - #8329 - #7943 - #8509 Test Plan: Steps: - Add an gallery widget to a site. - Click on an image in the gallery - The carousel should open and the navigation should work as expect. - Check the dev console for any JS errors Reviewers: dereksmart, zinigor Reviewed By: zinigor Subscribers: zinigor, brbrr, dereksmart Differential Revision: https://[private link] Merges r174217-wpcom. * Whitespace * whitespace * whitespace
Props @westi for the suggestion.
wip