AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
9.0.6 product page google structured data and variants
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
We've noticed where ProductController.GoogleProductSchema() is generating up to 100 structured data items in a rich snippet array for products with variants. Our code coverage analysis shows this widget alone is responsible for 43% of the page postback speed when a variant dropdown selection is made.
I can't find any documentation online that specifically mentions a 100 element limit. Nor can I find anything that suggests having 100 elements actually helps anything.
We're scared to death to touch anything with structured data as it could easily impact organic SEO. However we're frustrated with the postback delays during variant dropdown selections.
Was there a specific technical reason for a 100 element limit?
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System Joined: 10/11/2018(UTC) Posts: 110
Thanks: 19 times Was thanked: 18 time(s) in 18 post(s)
|
Quote:Was there a specific technical reason for a 100 element limit? It was set to increase the page speed. If there are thousands of variants, it slower the page since the widget is used on the product page. This has already been tested with 1200 variants using structured data testing tool.
|
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
I'm not entirely sure, but I think the widget tries to build every variant possibility regardless of the actual variant choices at a given time. And then stops at 100 for a maximum.
Is there a way to only do that one time on initial page load, rather than on every single postback? That's the problem - those rich snippets are getting generated every single postback and on a large variant matrix (6 option dropdowns, thousands of choices) it bogs down the page pretty badly.
|
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
Upon further investigation, I can see that the google schema data is the same with every postback. It's not taking into account the current optionsList value when pulling in variants. So regenerating the first 100 available variants on every single postback is a waste of time.
I've modified the routine to cache the data for 5 minutes on initial page load and got significant speed improvements right away.
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
9.0.6 product page google structured data and variants
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close