Best Website-BuildersBest Website-Builders
    What's Hot

    A Texas university president canceled a student drag show, calling it β€˜divisive’ and misogynistic. First Amendment advocates disagree

    March 22, 2023

    Ukraine to clinch first IMF loan to nation at war

    March 22, 2023

    Steel Barricades Go up Outside Trump Tower As Trump Indictment Looms

    March 22, 2023
    Facebook Twitter Instagram
    Facebook Twitter Instagram
    Best Website-BuildersBest Website-Builders
    • Home
    • CSS

      Social Security launches investigation into disappearance of zombie drug

      March 22, 2023

      The Markland area will be closed for about six months

      March 21, 2023

      The battle of ironclads marked the beginning of modern ships

      March 21, 2023

      CDJapan : Pale Moon 32.1.0

      March 21, 2023

      Pale Moon 32.1.0 | Neowin

      March 21, 2023
    • Joomla

      Reseller Hosting Business: Important Q&A

      March 21, 2023

      Web Hosting: 8 Elements Every Entrepreneur Should Look For

      March 20, 2023

      VS Code Extension for In-Browser Development, WapuuGotchi Gamification Plugin & More – WP Tavern

      March 20, 2023

      How Superior Web Hosting Support Can Drive Business Success

      March 17, 2023

      PANDACU Studio Website Development Cooperation First Page Sage SEO Dsign Chicago adstargets Cardinal Digital Agency

      March 16, 2023
    • PHP

      Maren Morris introduces son to drag queen and unapologetically shares support for LGBTQ community at Tennessee benefits show

      March 21, 2023

      Gwyneth Paltrow ski crash lawsuit trial begins

      March 21, 2023

      β€œAnything exciting today?”

      March 21, 2023

      Possible New York Trump indictment attracts demonstrators

      March 21, 2023

      Here are the best cheap wireless earbuds under $25 on Amazon

      March 21, 2023
    • UX

      Adobe Explodes Its AI

      March 22, 2023

      β€˜Laws are working as intended’: Pay transparency brings new awkwardness to the workplace

      March 21, 2023

      Microsoft says PlayStation should make an exclusive to compete with Call of Duty

      March 21, 2023

      How a holistic UX approach adds value to the design process

      March 21, 2023

      Spectrum Access app spotlighted for digital inclusion

      March 21, 2023
    • Web Builders
      1. Web Design
      2. View All

      What Comes First in Website Development β€” Design or Copy?

      February 2, 2023

      Modern Campus Honors Best Higher Education Websites of 2022

      February 2, 2023

      Premier SEO Consultant in Las Vegas, Nevada with Unparalleled Customer Service

      February 2, 2023

      Can Religious Freedom Be Saved? This group is racing the clock to teach America’s first freedom

      February 2, 2023

      How i Create New Google Account

      February 7, 2023

      CWT powers tools for meeting and event planners

      January 31, 2023

      Best Website Builder – Website Builders

      January 24, 2023

      Is There A Market For Rap-Themed Slot Games? – Rap Review

      January 19, 2023
    • WordPress

      CPU aside, today is the day the GPU takes over your kingdom

      March 22, 2023

      Is Duolingo developing a new music-learning app? We interpret the signs

      March 21, 2023

      The latest news, rumors and everything we know so far | Tech Radar

      March 21, 2023

      The Pro version of the Nvidia RTX 4090 Mobile may be a bit of a disappointment

      March 21, 2023

      Russia orders civil servants to ditch iPhones

      March 21, 2023
    • Realtoz
      • Our Other Sites
    • More News
    Best Website-BuildersBest Website-Builders
    Home Β» Learn more about how web browsers work (with illustrations) βš™οΈπŸš€ | Tapajyoti Bose | | March 2023
    CSS

    Learn more about how web browsers work (with illustrations) βš™οΈπŸš€ | Tapajyoti Bose | | March 2023

    websitebuildersnowBy websitebuildersnowMarch 19, 2023No Comments6 Mins Read
    Facebook Twitter LinkedIn Telegram Pinterest Tumblr Reddit WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    browser It’s part of our everyday life, but have you ever wondered how it works under the hood?

    In this article, we take a closer look at the behind-the-scenes magic of the web. browser.

    let’s start! πŸš€

    navigation This is the first step of loading the web page.the user URLs Click or click the link.

    1.1. DNS lookup

    The first step is IP address where the resource is located. this is, DNS lookup.

    of domain name system (DNS) server is a server that is used specifically to match website host names ( www.example.com) corresponding to internet protocol again IP address. of DNS The server contains public databases IP address and their corresponding Domain name

    For example, when you visit www.example.com, DNS server returns IP address 93.184.216.34 this corresponds to IP address.

    1.2. 3-Way TCP Handshake

    The next step is TCP connection with the server. this is, 3-way TCP handshake.

    First, the client sends a request to open a connection to the server. SYN packet.

    The server then responds with: SYN-ACK packet Acknowledge the request and ask the client to open the connection.

    Finally, the client ACK packet To the server to check the request.

    1.3. TLS handshake

    when the website uses HTTPS (encryption HTTP protocol), the next step is TLS connection Via TLS handshake.

    A few more messages are exchanged between the browser and the server during this step.

    1. client says hello: The browser sends a message to the server. TLS Versions and cipher suites to support, and a string of random bytes known as client random.
    2. Server hello message and certificate: the server is the server’s SSL certificatethe server-chosen cipher suite, and server random (a random string of bytes generated by the server).
    3. certification: your browser is on the server SSL certificate with the certificate authority that issued it. This way the browser can see who the server is.
    4. Premaster’s Secret: The browser sends another random string of bytes called the premaster secret. public key the browser SSL certificate from the server.of premaster secret can only be decrypted with private key by the server.
    5. private key used: The server decrypts the premaster secret.
    6. Created session key: browser and server generate session key client random, server random, and premaster secret.
    7. client exit: The browser will send a message to the server indicating that it has finished.
    8. Server completed: The server sends a message to the browser indicating that the browser has also terminated.
    9. Provides secure symmetric encryption: TheΒ· handshake can be used to continue communication. session key.

    Now you can start requesting and receiving data from the server.

    later TCP connection is established, the browser can start fetching resources from the server.

    2.1. HTTP Request

    If you have experience with web development, you will come across the following concepts. HTTP request.

    HTTP request Used to fetch resources from the server.For that URLs & type of request (obtain, director, put, erase) is processed.The browser also adds some extra features header to the request to provide additional context.

    The first request sent to the server is usually obtain request to fetch HTML File.

    2.2. HTTP Response

    Then the server uses the appropriate HTTP response for a given request.

    In response, status code, header & body.

    Next is the main section.the browser HTML parse the file and Dom (Document object model) wood.

    This is done by the browser engine, which is the core of the browser (e.g. Gecko for Firefox, Webkit for Safari, Flashing ChromeSuch).

    here is an example HTML File:

    <!DOCTYPE html>
    <html>
    <head>
    <title>Page Title</title>
    </head>
    <body>
    <p>Hello World!</p>
    </body>
    </html>

    3.1. Tokenization

    The first step to display a web page is HTML File. tokenization The process of breaking a string into meaningful chunks for the browser, token.

    token is the basic component of DOM tree.

    3.2. Building the DOM Tree

    rexing is the process of transforming the sequence of token in a tree structure called DOM tree.

    of DOM tree A tree data structure representing the nodes of the . HTML document.

    Note: If your page requires an external resource, it will be handled as follows:

    1. Non-blocking resource obtained in parallel. For example: image.
    2. deferred resources fetched in parallel, but executed after DOM tree be built. Example: script WITH defer Attribute & CSS File.
    3. blocking resource Fetched and executed sequentially. for example: script without it defer attribute.

    later DOM tree is constructed, the browser will CSS File to generate CSSOM (CSS object model).

    This process DOM tree Building with Tokenization and Generation of CSSOM

    As mentioned above, if your page requires a block scriptit is fetched and executed immediately, but DOM tree Construction is paused. script is fetched and executed after DOM tree Construction completed.

    whenever script processed by JavaScript engine I like all browser engine It depends on your browser.

    5.1. JIT compilation

    Assuming you are familiar with the concept of translator & compiler, JavaScript The engine uses a hybrid approach. JIT (just in time)compile.

    JIT means just in timei.e. unlike a compiled language such as Hawhere compile It happens ahead of time (that is, before the code actually runs). JavaScript, compile done while running

    Finally give page. the browser DOM tree & CSSOM Render the page.

    6.1. Building the render tree

    The first step is render tree. of render tree is a subset of DOM tree Only elements visible on the page are included.

    6.2. Layout

    The next step is render treeThis is done by calculating the exact size and position of each element render tree.

    This step Dom Even if only partially, it affects the layout of the page.

    Examples of situations in which an element’s position is recalculated are:

    1. Add or Remove Elements Dom
    2. Resize your browser window
    3. change of width, heightor position Elements of the

    6.3. Painting

    Finally, the browser decides which node Calculate its position, which should be visible Viewportit’s time paint Display them (render pixels) on the screen. This phase rasterization phasethe browser transforms each element computed during the layout stage into a real element pixel on screen.

    like layout phasethis phase occurs whenever you change the appearance of an element Domeven partially.

    Examples of situations in which an element’s position is recalculated are:

    1. change of outline Elements of the
    2. change of opacity again visibility Elements of the
    3. change of background color Elements of the

    6.4. Layering and compositing

    The final step is to composite the layers. This is done by the browser to optimize the rendering process.

    synthesis It is a technique to divide part of the page into layers, painting separate them, synthesis As a page in another thread called compositor thread. If sections of the document are drawn on different layers and overlap each other, synthesis needed to ensure that they are drawn to the screen in the correct order and the content is rendered correctly

    Note: Dom update, especially layout & paintis a very costly operation, and low end deviceTherefore, it is important to minimize the number of times it is triggered.

    It’s all people! πŸŽ‰



    Source link

    Share this:

    • Tweet
    • Email
    • Pocket
    • Mastodon
    • WhatsApp
    • Telegram
    • Share on Tumblr
    • Print
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram Email
    Previous ArticleNew York man threatened to kill Yonkers mayor and police during St. Patrick’s Day parade, prosecutors say
    Next Article John Edwards Was the Last Presidential Candidate Charged for Campaign Finance Violations
    websitebuildersnow
    • Website

    Related Posts

    Social Security launches investigation into disappearance of zombie drug

    March 22, 2023

    The Markland area will be closed for about six months

    March 21, 2023

    The battle of ironclads marked the beginning of modern ships

    March 21, 2023
    Add A Comment

    Leave a Reply Cancel reply

    Top Posts

    Subscribe to Updates

    Get the latest sports news from SportsSite about soccer, football and tennis.

    Advertisement
    Demo

    This website provides information about CSS and other things. Keep Supporting Us With the Latest News and we Will Provide the Best Of Our To Makes You Updated All Around The World News. Keep Sporting US.

    Facebook Twitter Instagram Pinterest YouTube
    Top Insights

    A Texas university president canceled a student drag show, calling it β€˜divisive’ and misogynistic. First Amendment advocates disagree

    March 22, 2023

    Ukraine to clinch first IMF loan to nation at war

    March 22, 2023

    Steel Barricades Go up Outside Trump Tower As Trump Indictment Looms

    March 22, 2023
    Get Informed

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Β© 2023 bestwebsite-builders. Designed by bestwebsite-builders.
    • Home
    • About us
    • Contact us
    • DMCA
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.