Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6531523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:53:17+00:00 2026-05-25T09:53:17+00:00

If you login to Facebook, Twitter or Gmail and view source, you’ll notice something

  • 0

If you login to Facebook, Twitter or Gmail and view source, you’ll notice something very peculiar. All your Tweets and mail are rendered as JSON. There are no angle brackets. My guess is, this data is all dynamically rendered to the DOM. If you inspect any element on the page, you’ll see tons of divs and other HTML elements. None of which was served in the original markup. The questions are:

  1. Why would these 3 huge sites take time out to do this?
  2. Wouldn’t it be faster to just use HTML?
  3. Is it to save on bandwidth since the JSON payload is smaller to serve than HTML?
  4. Is it because these sites are heavily based on AJAX? My guess would be the former, but I have no idea. I’m not sure if you have to work for Google Twitter, or Facebook to know why this is, but this tactic is shared between the 3 sites, so I figure they have a common goal in mind. That makes me think it’s more of a general thing.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:53:17+00:00Added an answer on May 25, 2026 at 9:53 am

    There are several reasons for their design that are commonly applied:

    1. As the previous answers mentioned, caching can be utilized in the browser and JSON payload is lighter
    2. They are providing a clean separation between the service, the UI logic and data following the MVC pattern
      • JSON as a Model
      • JavaScript UI Widget as View that renders the data
      • Service layer as the Controller that provides the business logic/service that feeds into the UI Layer
    3. API driven architecture and separation mentioned in point #2 above allow the company to provide multiple channels delivery without too much rework. Consider if we want to build Twitter App for Android:

      • JSON as Model stays the same, nothing needs to be rework here as the data is the same
      • We now will change the View from HTML to Android Native UI, in this case we will need to code the UI layer code
      • Service Layer as Controller remains the same and we dont’ have to do anything here

      As you can see, this model provides a way for Google/Twitter to deliver into multi-channels without having to rewrite their logic. The same applies to Mobile WebView vs. normal Desktop WebView. All we need to change is the UI Layer and not the Data or Controller layer.

    This is why they are taking time to think about the design and architecture it as such. A tight coupling between the data and presentation would require them to rework a lot of code in order to be delivered in multiple channels. It’s not about JSON vs. HTML or just the web but more of an architecture decision that would allow them to deliver their content to multi-channels (iOS, Android, third party App, Mobile WebView, Desktop View, Desktop App, etc). What you see in their HTML source is the manifestation of their strategy in WebView channel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we need to Login Facebook,Twitter,Gmail from our desktop application we have OAuth tokens such
im trying to implement a login with facebook/twitter functionality in my app, i read
How to include login with facebook and twitter option in a website.
We are currently introducing facebook and twitter login functionality for our users both on
When allowing login by OAuth (such as OpenID, Facebook, Twitter, etc), we save the
I am adding Twitter and Facebook login to a MVC 3 test application using
I'm developing a PHP/MYSQL powered system, and have facebook, twitter and normal login. Each
So I have an app account in which it can login using facebook/twitter or
In my app there are facebook and twitter login using browser and after login
I have an app which user can login using twitter and facebook to login,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.