Cov txheej txheem:

Yuav ua li cas browser render ib nplooj ntawv?
Yuav ua li cas browser render ib nplooj ntawv?

Video: Yuav ua li cas browser render ib nplooj ntawv?

Video: Yuav ua li cas browser render ib nplooj ntawv?
Video: The Serial Number is Invalid. Please Contact Reallusion. iClone Will Now Close For iClone 2024, Kaum ib hlis
Anonim

Thaum lub web nplooj yog loaded, lub browser thawj zaug nyeem TEXT HTML thiab tsim DOM Tsob Ntoo los ntawm nws. Tom qab ntawd nws ua cov CSS seb qhov ntawd yog inline, kos lossis sab nraud CSS thiab tsim CSSOM Ntoo los ntawm nws. Tom qab cov ntoo no tsim, ces nws tsim lub Render - Tsob ntoo los ntawm nws.

Cov lus nug tseem yog, dab tsi yog rendering ntawm nplooj ntawv web?

Thaum peb tham txog web neeg rau zaub mov, kev ua txhais tau tias tsim HTML tso zis los ntawm koj web server. Rendering los ntawm Browser. Thaum peb tham txog web browser, kev ua txhais tau tias parsing HTML thiab tso saib cov nplooj ntawm qhov screen (UI).

Tsis tas li ntawd, browser parse HTML li cas? Thaum koj khaws cov ntaub ntawv nrog lub. html extension, koj signal rau lub browser cav los txhais cov ntaub ntawv raws li ib tug html ntaub ntawv. Txoj kev browser "interpres" cov ntaub ntawv no yog thawj zaug kev txheeb xyuas nws. Hauv kev txheeb xyuas txheej txheem, thiab tshwj xeeb tshaj yog thaum lub sij hawm tokenization, txhua qhov pib thiab xaus html tag nyob rau hauv cov ntaub ntawv yog accounted rau.

Raws li qhov tshwm sim, yuav ua li cas hauv browser thaum koj tus browser thauj cov nplooj ntawv?

Ib nplooj ntawv load pib thaum a neeg siv xaiv a hyperlink, xa a daim ntawv, los yog hom a URL hauv ib browser . Qhov no kuj tseem hu ua qhov kev thov thawj zaug lossis qhov pib navigation. Tus neeg siv qhov kev txiav txim xa a thov thoob plaws lub network mus rau lub web daim ntawv thov server. Qhov kev thov mus txog rau daim ntawv thov kev ua haujlwm.

Yuav ua li cas browser rendering ua haujlwm tom qab scenes?

Yuav Ua Li Cas Browsers Ua Haujlwm: Tom Qab Scenes

  1. Tus neeg siv interface - qhov no suav nrog qhov chaw nyob bar, rov qab / pem hauv ntej khawm, bookmarking ntawv qhia zaub mov thiab lwm yam.
  2. Lub browser cav - marshalls cov kev ua ntawm UI thiab lub cav rendering.
  3. Lub cav rendering - lub luag haujlwm rau kev nthuav tawm cov ntsiab lus thov.
  4. Networking - siv rau kev hu xov tooj, xws li HTTP thov.

Pom zoo: