Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.57k stars 795 forks source link

Infinite Scroll: Twitter embeds not displayed correctly on pages past first load #7445

Open kathrynwp opened 6 years ago

kathrynwp commented 6 years ago

Steps to reproduce the issue

  1. Activate a theme that displays the full post on the blog page, like Twenty Fifteen or Penscratch.
  2. If the theme has any footer widget areaes, make sure they are empty and do not contain widgets.
  3. Activate Infinite Scroll. (WordPress.com - WP Admin > Settings > Reading > "Check to load posts as you scroll." or self-hosted, Theme Enhancements: "Load more posts as the reader scrolls down")
  4. Create 10 posts, adding a Twitter embed to each post by pasting a single line like https://twitter.com/wordpressdotcom/status/884332652765032448
  5. Visit the front end and scroll down the blog.

What I expected

As I scroll down the blog, Twitter embeds should be displayed fully in the "card" format, with any images displayed. Example:

a lovely site a very nice tagline-1

What happened instead

As I scroll down the blog, Twitter embeds below the first page load (example URL structure: https://yourgroovysite.wordpress.com/page/2/ do not display the correct "card" format, but instead show a simple blockquote format.

Example:

a lovely site a very nice tagline

Replicated with Independent Publisher 2, Quadra, Penscratch 2, Twenty Fifteen.

Screencast with Twenty Fifteen

https://cloudup.com/co14xQm3DgR

Reported in: http://en.forums.wordpress.com/topic/quadra-circa-hexa-question-pages-pages

kraftbj commented 6 years ago

First thought: Likely stuff isn't firing off right similar to why we preload other scripts: https://github.com/Automattic/jetpack/blob/master/modules/infinite-scroll.php#L181

jeherve commented 6 years ago

Similar issues with other embeds:

4033 #3591 #1439 #8989

stale[bot] commented 5 years ago

This issue has been marked as stale. This happened because:

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.

stale[bot] commented 5 years ago

This issue has been marked as stale. This happened because:

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.