Best Website-BuildersBest Website-Builders
    What's Hot

    Reddit – Dive into anything

    March 20, 2023

    How to Use DALLΒ·E 2 and Craiyon to Generate AI Art

    March 20, 2023

    Weiss Asset Management LP will reduce its holding in Juniper II Corp. (NYSE:JUN).

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

      Weiss Asset Management LP will reduce its holding in Juniper II Corp. (NYSE:JUN).

      March 20, 2023

      8 semantic HTML tags to make your website accessible, clean and modern

      March 20, 2023

      CSS Entertainment (CSSE) and Allen Media Group join Redbox as partners

      March 20, 2023

      European Bank Bonds, Stocks Fall After Surprise AT1 Wipeout of CS

      March 20, 2023

      UK banks hit as CS AT1 bond writedown sparks turmoil

      March 20, 2023
    • Joomla

      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

      Bluehost Review: Best Solution for Your Web Hosting Needs? – WISH-TV | Indianapolis News | Indiana Weather

      March 15, 2023
    • PHP

      Christina Ricci said she was nearly sued for a sex scene

      March 20, 2023

      Gen Z adults pay rent with credit cards

      March 20, 2023

      Adam Sandler Wins Mark Twain Award for American Humor

      March 20, 2023

      Sarah Snook was told the β€˜inheritance’ was over

      March 20, 2023

      Anna Marie Tendler responds to Taylor Swift backlash

      March 20, 2023
    • UX

      Payment transparency is widespread.What You Need to Know | News, Sports, Jobs

      March 20, 2023

      The UX Behind #TheUnlock at Riot Games: Part 1 | by Cheryl Platz | Riot Games UX Design | Mar, 2023

      March 20, 2023

      Assistive technology – improve the user experience for people with disabilities

      March 20, 2023

      Furman fosters talent development and launches Center for Innovative Leadership

      March 20, 2023

      Is coding bootcamp worth it?

      March 20, 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

      Hitachi Energy confirms data breach after being hit by Clop ransomware

      March 20, 2023

      Don’t keep your guests waiting on poor Wi-Fi. Offer Aruba Instant On.

      March 20, 2023

      iPhone 15 Pro leak suggests it may make controversial button changes

      March 20, 2023

      Police Arrest BreachForum Owner on Cybercrime Suspicion

      March 20, 2023

      Intel seems to have canceled the most interesting CPU hybrid ever

      March 20, 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 C.where 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

    Weiss Asset Management LP will reduce its holding in Juniper II Corp. (NYSE:JUN).

    March 20, 2023

    8 semantic HTML tags to make your website accessible, clean and modern

    March 20, 2023

    CSS Entertainment (CSSE) and Allen Media Group join Redbox as partners

    March 20, 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

    Reddit – Dive into anything

    March 20, 2023

    How to Use DALLΒ·E 2 and Craiyon to Generate AI Art

    March 20, 2023

    Weiss Asset Management LP will reduce its holding in Juniper II Corp. (NYSE:JUN).

    March 20, 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.