More actions
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
#''The time it takes to do style-recalculations and layouts are restricted by DOM size, so the iframe recalculations are very fast compared to recalculating styles and layout for the page.'' <> An ƙuntata lokacin maimaicin ƙidayar salo da tsarukan shafi ga girman DOM ɗin, saboda haka maimaicin ƙidayar iframe na da sauri idan an kwatanta da maimaicin ƙidayar salon da tsarin shafin. | #''The time it takes to do style-recalculations and layouts are restricted by DOM size, so the iframe recalculations are very fast compared to recalculating styles and layout for the page.'' <> An ƙuntata lokacin maimaicin ƙidayar salo da tsarukan shafi ga girman DOM ɗin, saboda haka maimaicin ƙidayar iframe na da sauri idan an kwatanta da maimaicin ƙidayar salon da tsarin shafin. | ||
#''All CSS must be inline and size-bound. ''<> Duk CSS ɗin da za a rubuta, a rubuta cikin layi kuma a ƙuntata girmansa. | #''All CSS must be inline and size-bound. ''<> Duk CSS ɗin da za a rubuta, a rubuta cikin layi kuma a ƙuntata girmansa. | ||
#''Font triggering must be efficient.'' <> | #''Font triggering must be [[efficient]].'' <> Dole a jawo tsarin haruffa da [[inganci]]. | ||
# | |||
##''CSS blocks all rendering, it blocks page load, and it tends to get bloated.'' <> CSS yana toshe nuna shafi gabaki ɗaya, yana toshe lodin shafi, kuma yana iya zama jibgege. | |||
##''In AMP HTML pages, only inline styles are allowed.'' <> | |||
##''This removes 1 or often more HTTP requests from the critical rendering path compared to most web pages.'' <> | |||
##''Also, the inline style sheet has a maximum size of 50 kilobytes.'' <> | |||
##''While this size is big enough for very sophisticated pages, it still requires the page author to practice good CSS hygiene.'' <> |