the_excerpt() slow when post contains iframes
-
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
- The topic ‘the_excerpt() slow when post contains iframes’ is closed to new replies.