Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How accurate is YSlow at finding the components in the page? Why do YSlow and some packet sniffers differ?

0
10 Posted

How accurate is YSlow at finding the components in the page? Why do YSlow and some packet sniffers differ?

0

There are two main approaches for finding components in a web page: sniffing packets and crawling the DOM. Firebug’s Net Panel, ethereal, and IBM Page Detailer are packet sniffers. YSlow, Instant Source, and the AIS Accessibility Toolbar crawl the DOM. The problem with sniffing packets is sometimes components are read from the browser’s disk cache. If the user forgets to clear their cache, the components shown by the packet sniffer don’t reflect all the components in the page. Packet sniffers tell the user only about the components that generated network traffic for the current web page request. DOM crawlers, on the other hand, report all the components found in the DOM of the current page, whether they were read from disk or downloaded over the Internet. The problem with DOM crawlers is not all HTTP requests show up in the DOM. Specifically, beacons, XHR, and JSON requests aren’t found in the DOM. YSlow is a combination of a DOM crawler and a packet sniffer.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123