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
| #standardSQL | |
| # Core WebVitals by origin | |
| CREATE TEMP FUNCTION IS_GOOD (good FLOAT64, needs_improvement FLOAT64, poor FLOAT64) RETURNS BOOL AS ( | |
| SAFE_DIVIDE(good, (good + needs_improvement + poor)) >= 0.75 | |
| ); | |
| CREATE TEMP FUNCTION IS_POOR (good FLOAT64, needs_improvement FLOAT64, poor FLOAT64) RETURNS BOOL AS ( | |
| SAFE_DIVIDE(poor, (good + needs_improvement + poor)) >= 0.25 | |
| ); |
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
| #standardSQL | |
| # Core WebVitals by country | |
| CREATE TEMP FUNCTION IS_GOOD (good FLOAT64, needs_improvement FLOAT64, poor FLOAT64) RETURNS BOOL AS ( | |
| SAFE_DIVIDE(good, (good + needs_improvement + poor)) >= 0.75 | |
| ); | |
| CREATE TEMP FUNCTION IS_POOR (good FLOAT64, needs_improvement FLOAT64, poor FLOAT64) RETURNS BOOL AS ( | |
| SAFE_DIVIDE(poor, (good + needs_improvement + poor)) >= 0.25 | |
| ); |
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
| // Paste this into console to prerender all links on hover | |
| function prerenderInAction() { | |
| const script_ = document.createElement('script'); | |
| script_.type = 'speculationrules'; | |
| script_.textContent = ` | |
| { | |
| "prerender": [ | |
| { | |
| "where": { | |
| "href_matches": "/*" |
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
| <script> | |
| (function () { | |
| function reportWebVitals(metric, debugData) { | |
| var name = metric.name, | |
| delta = metric.delta, | |
| id = metric.id, | |
| navigationType = metric.navigationType, | |
| value = metric.value, | |
| entry = metric.entries[0]; |
OlderNewer