This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Add to <head> or as first script in body before any content --> | |
| <script type='text/javascript'> | |
| const observedElements = new WeakSet(); // Keep track of processed elements | |
| new MutationObserver((mutationsList, observer) => { | |
| for (let mutation of mutationsList) { | |
| for (let node of mutation.addedNodes) { | |
| if (node.nodeType === Node.ELEMENT_NODE && !observedElements.has(node)) { | |
| node.setAttribute('elementtiming', 'test'); | |
| observedElements.add(node); // Mark the element as processed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Explanations: | |
| cache: If you include other words in the query, Google will highlight those words within | |
| the cached document. For instance, [cache:www.google.com web] will show the cached | |
| content with the word “web” highlighted. This functionality is also accessible by | |
| clicking on the “Cached” link on Google’s main results page. The query [cache:] will | |
| show the version of the web page that Google has in its cache. For instance, | |
| [cache:www.google.com] will show Google’s cache of the Google homepage. Note there | |
| can be no space between the “cache:” and the web page url. | |
| ------------------------------------------------------------------------------------------ |