This is a very powerful ability that all of our favorite social media sites use. When Instagram, Twitter, or Facebook timeline updates live just remember that is AJAX at work.
Some common methods and functions of XMLHttpRequest are open(), send(), & readyState. Open() specifies the request whether it’s a method, url, async, user, and psw. Send() sends the request to the server used for GET requests and send(string) is used for the POST requests. GET is simpler and faster than POST. However POST requests have no size limit and are more secure.
It is exciting to see how everything is correlating together and making sense of how websites function nowadays especially social media sites.<div class='sharedaddy sd-block sd-like jetpack-likes-widget-wrapper jetpack-likes-widget-unloaded' id='like-post-wrapper-155635758-399-5d076bfa6b46e' data-src='https://widgets.wp.com/likes/#blog_id=155635758&post_id=399&origin=trilamanila.com&obj_id=155635758-399-5d076bfa6b46e' data-name='like-post-frame-155635758-399-5d076bfa6b46e'><h3 class="sd-title">Like this:</h3><div class='likes-widget-placeholder post-likes-widget-placeholder' style='height: 55px;'><span class='button'><span>Like</span></span> <span class="loading">Loading...</span></div><span class='sd-text-color'></span><a class='sd-link-color'></a></div>