• Hi,

    I have three or four posts which include iframes. When these posts are shown on a summary page (only includes excerpt, not full content) they display as expected: post title, post image, and post summary (text only).

    However, the page takes ages to load. If I comment out the call to the_excerpt, the page loads very quickly.

    I have tested different scenarios, and the speed issue only seems to arise when the posts on the summary page contain iframes within the page.

    Please note: the summary page does not show the iframes, and neither should it. I would expect the excerpt to only show text and this is the case.

    However, the fact the posts have iframes within their content seems to make the call to the_excerpt very slow for these posts.

    Not too sure why this would be an issue, but it does seem to be.

    Does anyone know if there is a way that I can resolve this issue?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Moved to Fixing WordPress, this is not a Developing with WordPress topic.

    Thread Starter rlawson3

    (@rlawson3)

    Hi Jan,

    Sorry, though the most likely solution would involve adding code – hence why I put it in developing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘the_excerpt() slow when post contains iframes’ is closed to new replies.