Mobile app version of vmapp.org
Login or Join
Nickens628

: A light(er)weight twitter feed widget? I'm using the "official" twitter feed widget, and I just noticed in Firefox's network inspector that it's adding +- 220 kB of data to my site at load

@Nickens628

Posted in: #LoadTime #Twitter #Widgets

I'm using the "official" twitter feed widget, and I just noticed in Firefox's network inspector that it's adding +- 220 kB of data to my site at load time.
100 kB is the "widgets.js" file, the other 100 kB is a json file (which weirdly enough is only 9kB when I copy the URL and download it from the address bar??).

Any suggestion for reducing those file sizes? Apart from custom coding a RSS feed extractor thingy which wouldn't depend on their widgets.js?

I'm just trying to skim some fat for faster load times :)

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nickens628

1 Comments

Sorted by latest first Latest Oldest Best

 

@Karen161

If I was coding something to deal with the problem, I'd have the feed download using PHP every so often (maybe via cron job) to a temp folder on the site in json. Then instead of polling twitter, I could serve up my own slimmed down pre-formatted version without the overhead. Simples :)

Steve

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme