MCPcopy Create free account
hub / github.com/ampproject/amphtml / installAlpClickHandler

Function installAlpClickHandler

ads/alp/handler.js:24–29  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

22 * @param {!Window} win
23 */
24export function installAlpClickHandler(win) {
25 win.document.documentElement.addEventListener('click', handleClick);
26 // Start loading destination doc when finger is down.
27 // Needs experiment whether this is a good idea.
28 win.document.documentElement.addEventListener('touchstart', warmupDynamic);
29}
30
31/**
32 * Filter click event and then transform URL for direct AMP navigation

Callers 1

install-alp.jsFile · 0.90

Calls 1

addEventListenerMethod · 0.45

Tested by

no test coverage detected