Website widget making requests for 5 media images even though they aren't used


#1

We have a Twitter widget pulling in the last 3 tweets. However, it is also making requests for the last 5 media images posted to our account even though they aren’t used in the 3 recent tweets.

Why does it do this and can it be disabled?


#2

It does this because the browser tries to pre-empt the image loading, even though we then discard the Tweets after the 3rd. We’ve got plans to fix this, both in terms of managing data-tweet-limit fully on the server (so it won’t return extra Tweets to be discarded at all) and also in terms of not exposing image sources to the browser before they’re finalised.

Some of these fixes should be out in the next few weeks.

Ben


#3

#4