Check out this blogpost by Facebook on FB Lite (not vail in the US unfortunately, so I haven't had the chance to play around with it myself).
https://code.facebook.com/posts/1365439333482197/how-we-buil...
As much as I dislike FB for other reasons, you gotta give them credit for caring a lot about performance.