* Preconnects to a URL. Always also does a dns-prefetch because * browser support for that is better. * * It is safe to call this method during prerender with any value, * because no action will be performed until the doc is visible. * * It is safe to call this method with non-HTTP
(ampdoc, url, opt_alsoConnecting)
| 116 | * will be used very soon. |
| 117 | */ |
| 118 | url(ampdoc, url, opt_alsoConnecting) { |
| 119 | ampdoc.whenFirstVisible().then(() => { |
| 120 | this.url_(ampdoc, url, opt_alsoConnecting); |
| 121 | }); |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * Preconnects to a URL. Always also does a dns-prefetch because |
no test coverage detected