Traditonal webpage vs Modern webpage working


                                       
  • "You are the user, visiting the webpage and when you do visit the webpage you use a client browser for that  !!!"
                               To be precise when you initially visit the webpage a request is sent to the server(to the computer on the internet where the webpage (html file is hosted)and that Server then loads that webpage and send its back to your Browser , so-called response is the most basic thing you see on internet.

                     Complexity that gave a birth to a JavaScript     


  • Let say a user visits a online shopping site that user had previously requested, the user clicks a button to submit the form (for eg : to order some product )that will triger new request sent by browser to the server to send this form. Same way the Server  will handles the incoming request (may be store some ordered products in the database), and soon reply with new Html page as a new response !!!

                "you might get confuse here so what is the complexity you are talking about then?"      NOW, the concept of javascript  comes here but how ??    How about  skipping second request because each time you request a something in browser it takes a round trip  , generating new response every time then and again.   why not to show info at the same page , overlay to the existing page ??    


            Again the question is how ??

"let uses javascript features such as modal as it called pop up like window which gets loaded on existing page so that we don't need to fetch the new html page and break user experience of it but instead that we stay on same page and tweak a little bit "

    "THIS IS WHERE JAVASCRIPT CAN HELP US AND THE REASON OF INVENTION OF JAVASCRIPT that works with modern browser"




    

Comments

Popular posts from this blog

JavaScript — Double Equals vs. Triple Equals - weird things on JavaScript

06_Understanding Execution Context and Execution Stack in Javascript

Creating and inserting element- part-2