php - social media feeds - client or server side requests? -


i'm curious other developers when integrating twitter, facebook , other such feed content on site. make these requests , handle on client or server side? seems there number of jquery plugins out there handle type of simple integrations tend have sites, e.g 3 latest posts.

previously, using php (twitter became more complicated integrate when switched openauth) content twitter, blogger etc, i'm wondering if there real need when can done javascript. obviously, if javascript isn't enabled feeds wouldn't display.

interested hear people in situation!

i tend hook directly feeds client-side code, unless i'm doing complicated, need additional validation or cache results of feed.

the rationale if grab feeds on server, have 2 download data twice - once api server server, , once server - whereas grabbing directly api in client-side code results in single http request, should arguably load quicker.

of course, if you've got lot of traffic, third-party services tend rate-limit, means might have server-side caching able reliably serve content visitors.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -