Comments (3)
Site Reviews does not load in an iframe, it is part of the HTML of your webpage.
Please show an example online that demonstrates the performance benefit and method of lazy loading html content (not images) of a page.
from site-reviews.
Sure: https://www.sertmedia.com/lazy-load-your-wordpress-comments-for-better-performance/
Would be great to have this integrated into site reviews, so no matter way adding it, Gutenberg shortcodes etc it can be lazy loaded.
Options for users:
No lazy load
Lazy load on scroll (specify off-set)
Lazy load on "load reviews click"
Lazy load after page fully rendered.
from site-reviews.
The problem with this is that it is not SEO friendly. You generally want your reviews accessible to search engines, and if using the schema options on the [site_reviews] shortcode, the added Review schema requires that the reviews are visible to search engines.
Another concern is user experience. The few milliseconds you save by lazy loading reviews may make the site experience worse for your visitors as lazy-loading requires an AJAX request on scroll which can make your site jump as the content loads.
Lazy loading your posts used to be very popular a few years ago, but many stay away from it now because of the SEO and user experience implications. Reviews should not be classified the same as comments; they hold a very different purpose and are more important and relevant to your customers. If your site is loading slow, the culprit will likely not be due to the ~0.2ms of time it takes to load the reviews...
If you want to optimise the review loading and you have enabled avatars, I recommend that you:
- Install a lazy loading plugin for images
- Only display up to 10 reviews
- Use the pagination option with ajax
- If you are assigning reviews, only assign to either a category or a post ID, not both
However, I will add this request to the Roadmap for future consideration and review, though I cannot promise that it will ever be implemented. Likely, the only lazy loading that will be added will be for the avatars.
from site-reviews.
Related Issues (20)
- Issue with assets path in local development HOT 1
- assigned_terms and assigned_posts not working properly in site_reviews_summary HOT 5
- 'Slow query' reported by Query Monitor HOT 18
- Error activating plugin HOT 2
- Add a new field. HOT 1
- Tag v5.0.1 just vanished HOT 8
- Duplicate Queries wp_glsr_ratings HOT 6
- Review details disappeared from client webiste HOT 1
- site_reviews shortcode display, pagination issues with Elementor HOT 14
- Performance issue HOT 5
- cannot activate plugin due to new wordpress update 5.8.1
- test
- Pagination: load more feature HOT 1
- Spam submission protection HOT 6
- Function GeminiLabs\SiteReviews\Application->__get takes 0.555044 HOT 2
- Respond "quick edit" layout is broken
- Viewing Review Filter addon - 404 HOT 11
- Clarification about using Filter and Form addons HOT 1
- Template tag review_link deprecated? HOT 1
- Use email address from the user profile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from site-reviews.