Baseline Widely available
domainLookupEnd
ã¯èªã¿åãå°ç¨ããããã£ã§ããã©ã¦ã¶ã¼ããªã½ã¼ã¹ã®ãã¡ã¤ã³åæ¤ç´¢ãçµäºããç´å¾ã® timestamp
ãè¿ãã¾ãã
ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãã®ãã£ãã·ã¥ã«ãã¡ã¤ã³æ
å ±ããã£ãå ´åãdomainLookupStart
㨠domainLookupEnd
ã¯ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãããã£ãã·ã¥ããã®ãã¡ã¤ã³ãã¼ã¿ã®åå¾ãéå§ããã³çµäºããæå»ã表ãã¾ãã
domainLookupEnd
ããããã£ã¯ã以ä¸ã®å¤ãåãã¾ãã
DOMHighResTimeStamp
ã0
ã§ããTiming-Allow-Origin
ã¬ã¹ãã³ã¹ãããã¼ã使ç¨ãããªãã£ãå ´å㯠0
ã¨ãªãã¾ããdomainLookupEnd
㨠domainLookupStart
ããããã£ã使ç¨ããã¨ã DNS ã«ãã¯ã¢ããã®çºçã«å¯¾ãã¦ã©ãã ãæéããããããè¨æ¸¬ãããã¨ãã§ãã¾ãã
const dns = entry.domainLookupEnd - entry.domainLookupStart;
PerformanceObserver
ã使ç¨ããä¾ã§ãããã®ãªãã¸ã§ã¯ãã¯ãæ°ãã resource
ããã©ã¼ãã³ã¹é
ç®ããã©ã¦ã¶ã¼ã®ããã©ã¼ãã³ã¹ã¿ã¤ã ã©ã¤ã³ã«è¨é²ãããã¨ããããéç¥ãã¾ãããªãã¶ã¼ãã¼ã使ãããåã®é
ç®ã«ã¢ã¯ã»ã¹ããããã« buffered
ãªãã·ã§ã³ã使ç¨ãã¾ãã
const observer = new PerformanceObserver((list) => {
list.getEntries().forEach((entry) => {
const dns = entry.domainLookupEnd - entry.domainLookupStart;
if (dns > 0) {
console.log(`${entry.name}: DNS lookup duration: ${dns}ms`);
}
});
});
observer.observe({ type: "resource", buffered: true });
Performance.getEntriesByType()
ã使ç¨ããä¾ã§ãããã®ã¡ã½ãããå¼ã³åºããæç¹ã§ãã©ã¦ã¶ã¼ä¸ã®ããã©ã¼ãã³ã¹ã¿ã¤ã ã©ã¤ã³ã«åå¨ãã resource
ããã©ã¼ãã³ã¹é
ç®ã®ã¿ã表示ãã¾ãã
const resources = performance.getEntriesByType("resource");
resources.forEach((entry) => {
const dns = entry.domainLookupEnd - entry.domainLookupStart;
if (dns > 0) {
console.log(`${entry.name}: DNS lookup duration: ${dns}ms`);
}
});
ãªãªã¸ã³éã®ã¿ã¤ãã³ã°æ
å ±
domainLookupEnd
ããããã£ã®å¤ã 0
ã§ããå ´åããã®ãªã½ã¼ã¹ã¯ãªãªã¸ã³éãªã¯ã¨ã¹ãã§ããå¯è½æ§ãããã¾ãããªãªã¸ã³éã®ã¿ã¤ãã³ã°æ
å ±ãè¦ãããã«ã¯ãHTTP ã® Timing-Allow-Origin
ã¬ã¹ãã³ã¹ãããã¼ãè¨å®ããå¿
è¦ãããã¾ãã
ä¾ãã°ãhttps://developer.mozilla.org
ã«ã¿ã¤ãã³ã°ãªã½ã¼ã¹ãè¦ããã¨ã許å¯ããã«ã¯ããªãªã¸ã³éãªã½ã¼ã¹ã§æ¬¡ã®ãã®ãéä¿¡ããå¿
è¦ãããã¾ãã
Timing-Allow-Origin: https://developer.mozilla.org
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§ é¢é£æ
å ±
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4