MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 2 callersMethodpreconnect
* Called to instruct the element to preconnect to hosts it uses during * layout. * @param {boolean} onLayout Whether this was called after a
src/custom-element.js:907
↓ 2 callersMethodpreconnect
* @param {!../utils/preconnect.Preconnect} pre
third_party/subscriptions-project/swg.js:17978
↓ 2 callersMethodpreconnectCallback
(onLayout)
test/unit/test-custom-element.js:52
↓ 2 callersMethodpreconnectCallback
* Called by the framework to give the element a chance to preconnect to * hosts and prefetch resources it is likely to need. May be called * mul
src/base-element.js:440
↓ 2 callersMethodpreconnectCallback
* Prefetches and preconnects URLs related to the ad. * @param {boolean=} opt_onLayout * @override
extensions/amp-ad/0.1/amp-ad-3p-impl.js:243
↓ 2 callersMethodpreconnectCallback
* Prefetches and preconnects URLs related to the ad using adPreconnect * registration which assumes ad request domain used for 3p is applicable.
extensions/amp-a4a/0.1/amp-a4a.js:527
↓ 2 callersFunctionpreconnectToOrigin
(document)
src/preconnect.js:334
↓ 2 callersMethodprefersDarkMode_
* Checks whether the user prefers dark mode based on local storage and * user's operating system settings. * * @return {boolean}
src/service/standard-actions-impl.js:139
↓ 2 callersMethodpreimplementsMediaSessionAPI
* If returning true, it's assumed that the embedded video document internally * implements the MediaSession API internally so that the VideoManager
src/video-interface.js:160
↓ 2 callersMethodpreload
* Asks the browser to preload a URL. Always also does a preconnect * because browser support for that is better. * * It is safe to call this
src/preconnect.js:199
↓ 2 callersMethodpreloadAllMedia_
* Preloads all media on this page. * @return {!Promise} Promise that resolves after the callbacks are called. * @private
extensions/amp-story/1.0/amp-story-page.js:1181
↓ 2 callersMethodpreloadNext_
* @param {number} pos * @param {number} dir * @private
extensions/amp-carousel/0.1/scrollable-carousel.js:358
↓ 2 callersMethodpreloadPagesByDistance_
* @param {boolean=} prioritizeActivePage * @private
extensions/amp-story/1.0/amp-story.js:2164
↓ 2 callersMethodprepare
* To avoid popup blockers, the key/verifier pair is created as soon as * possible. * @return {?Promise}
third_party/subscriptions-project/swg.js:18175
↓ 2 callersFunctionprepareBodyForOverlay
(win, bodyElement)
src/inabox/inabox-viewport.js:39
↓ 2 callersMethodprepareError_
* Modifies an error before reporting, such as to add metadata. * @param {!Error} error * @private
third_party/subscriptions-project/config.js:550
↓ 2 callersMethodprepareUrlVars_
* @param {boolean} useAuthData Allows `AUTH(field)` URL var substitutions. * @return {!Promise<!{[key: string]: *}>} * @private
extensions/amp-access/0.1/amp-access-source.js:316
↓ 2 callersMethodprepareUrlVars_
* @param {boolean} useAuthData Allows `AUTH(field)` URL var substitutions. * @return {!Promise<!{[key: string]: *}>} * @private
extensions/amp-subscriptions/0.1/url-builder.js:57
↓ 2 callersFunctionprependConfig
* Adds a canary or prod config string to all non-esm minified targets.
build-system/pr-check/nomodule-tests.js:22
↓ 2 callersFunctionprependConfig
* Adds a canary or prod config string to all esm and non-esm minified targets.
build-system/pr-check/module-tests.js:18
↓ 2 callersMethodprerenderComplete_
* @private * @param {number} value
src/service/performance-impl.js:945
↓ 2 callersFunctionprintChangeSummary
* Prints a summary of files changed by, and commits included in the PR.
build-system/pr-check/utils.js:34
↓ 2 callersFunctionprintNobuildHelp
* Prints a message that could help speed up local development.
build-system/tasks/helpers.js:611
↓ 2 callersMethodprocessBaseLightboxElement_
* Assigns each lightboxed element to a lightbox group and adds * the on tap activate attribute. * @param {!Element} element * @param {string}
extensions/amp-lightbox-gallery/0.1/service/lightbox-manager-impl.js:252
↓ 2 callersMethodprocessExtraUrlParams_
* Replace the names of keys in params object with the values in replace map. * * @param {!{[key: string]: string}} params The params that need t
extensions/amp-analytics/0.1/amp-analytics.js:466
↓ 2 callersFunctionprocessImportMap
* Iterate through imports and report found duplicates. * @param {Map<string, string>} imports
build-system/eslint-rules/no-duplicate-import.js:26
↓ 2 callersFunctionprocessLightboxElement
* @param {string} defaultGroup * @param {!Document} document * @param {Element} element * @param {function(number)} open * @param {number} opt_ind
src/bento/components/bento-lightbox-gallery/1.0/base-element.js:165
↓ 2 callersFunctionprocessResultsCategory
(interactiveState, options)
extensions/amp-story-interactive/0.1/amp-story-interactive-results.js:94
↓ 2 callersFunctionprocessResultsPercentage
(interactiveState, options)
extensions/amp-story-interactive/0.1/amp-story-interactive-results.js:132
↓ 2 callersMethodprocessTouchend_
* Logic triggered by touchend events. * @private
extensions/amp-story/1.0/page-advancement.js:424
↓ 2 callersFunctionprop
(el, name)
extensions/amp-base-carousel/1.0/test-e2e/test-mixed-lengths.js:21
↓ 2 callersFunctionprop
(el, name)
extensions/amp-base-carousel/1.0/test-e2e/test-mixed-lengths-no-snap.js:21
↓ 2 callersMethodpropagateDataset
* Utility method to propagate data attributes from this element * to the target element. (For use with arbitrary data attributes.) * Removes any
src/builtins/amp-img/amp-img.js:445
↓ 2 callersMethodpropagateLayoutChildren_
* Propagate origin sources and tracks * @private
extensions/amp-video/0.1/amp-video.js:578
↓ 2 callersFunctionpropagateNonce
(doc, scriptEl)
src/core/dom/index.js:569
↓ 2 callersFunctionpublishRelease
* Publish a GitHub release * @param {string} tag * @param {boolean} latest * @param {Object|undefined} octokitRest * @param {Object|undefined} oct
build-system/release-tagger/update-release.js:16
↓ 2 callersFunctionpubmine
(global, data)
ads/vendors/pubmine.js:63
↓ 2 callersMethodpurge
* Removes tasks in queue that pass the callback test. * @param {function(!TaskDef):boolean} callback Return true to remove the task.
src/service/task-queue.js:151
↓ 2 callersMethodpurgeShadowRoots_
@private
src/multidoc-manager.js:548
↓ 2 callersMethodpurifyAndSetHtml_
* @param {string} html * @return {!Element} * @private
extensions/amp-mustache/0.2/amp-mustache.js:144
↓ 2 callersMethodpurifyTagsForTripleMustache
* Uses DOMPurify to sanitize HTML with stricter policy for unescaped templates * e.g. triple mustache. * * @param {string} dirty * @return
src/purifier/index.js:101
↓ 2 callersFunctionpushBuildWorkflow
* Steps to run during push builds.
build-system/pr-check/dist.js:82
↓ 2 callersFunctionpushIfNonEmpty
* @param {!Array} array * @param {*} val
third_party/subscriptions-project/swg.js:3008
↓ 2 callersFunctionpushIfNonEmpty
* @param {!Array} array * @param {*} val
third_party/subscriptions-project/swg-gaa.js:303
↓ 2 callersFunctionpushIfNotExist
* Pushes item into array if it does not exist. * * @param {!Array} array * @param {*} item
extensions/amp-ad-network-adzerk-impl/0.1/amp-ad-network-adzerk-impl.js:195
↓ 2 callersFunctionpushIntoProgramScope
* @param {babel.NodePath} path * @param {babel.types.Identifier} id * @param {babel.types.Expression} node
build-system/babel-plugins/babel-plugin-transform-inline-isenumvalue/index.js:225
↓ 2 callersFunctionpushToGlobal
(global, callback)
test/unit/test-video-iframe-integration.js:10
↓ 2 callersFunctionq
(n)
third_party/d3/d3.js:1
↓ 2 callersFunctionqi
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 2 callersFunctionqt
(e,t,n)
examples/amp-script/vue-todomvc.js:7
↓ 2 callersFunctionqt
(n)
third_party/d3/d3.js:1
↓ 2 callersMethodquerySelectorAllOrElement
* Helper to support providing already-selected elements to methods. * @param {string|Element} selectorOrElement * @return {Array<Element>}
testing/helpers/service.js:264
↓ 2 callersFunctionquerySelectorInSlot
(slot, selector)
src/core/dom/query.js:403
↓ 2 callersMethodquerySelectorOrElement
* Helper to support providing already-selected elements to methods. * @param {string|Element} selectorOrElement * @return {Element}
testing/helpers/service.js:253
↓ 2 callersMethodqueuePages_
* Add the provided page metadata into the queue of * pages to fetch * @param {!Array<!./page.PageMeta>} pages * @return {!Promise}
extensions/amp-next-page/1.0/service.js:836
↓ 2 callersFunctionrandomIdGenerator
(maxValue)
src/core/data-structures/id-generator.js:16
↓ 2 callersMethodrankPlatformsByWeight_
* @param {!Array<!PlatformWeightDef>} platformWeights * @return {!./subscription-platform.SubscriptionPlatform} * @private
extensions/amp-subscriptions/0.1/platform-store.js:597
↓ 2 callersMethodrcdata
* Handler called when RCDATA is found. * @param {string} text The RCDATA text found.
validator/js/engine/htmlparser-interface.js:416
↓ 2 callersFunctionreadFromFile
* Creates a promise which reads from a file. * @param {string} name * @return {Promise<string>}
validator/js/nodejs/index.js:40
↓ 2 callersFunctionreadFromUrl
* Creates a promise which reads from a URL or more precisely, fetches * the contents located at the URL by using the 'http' or 'https' module. * Any
validator/js/nodejs/index.js:95
↓ 2 callersFunctionreadmeMdGithubLink
()
build-system/tasks/sweep-experiments/index.js:283
↓ 2 callersFunctionreadonlyGetterProp
(get)
extensions/amp-video-docking/0.1/viewport-rect.js:8
↓ 2 callersMethodrecordGoogleFontExp_
@private
src/service/performance-impl.js:558
↓ 2 callersMethodrecordProductCode
* @param {*} productCode * @return {void}
extensions/amp-addthis/0.1/addthis-utils/monitors/active-tools-monitor.js:33
↓ 2 callersFunctionrect
(el)
extensions/amp-base-carousel/1.0/test-e2e/test-advance.js:29
↓ 2 callersFunctionrect
(el)
extensions/amp-base-carousel/0.1/test-e2e/test-advance.js:26
↓ 2 callersFunctionrect
(el)
extensions/amp-base-carousel/0.1/test-e2e/test-multi-visible-single-advance.js:17
↓ 2 callersFunctionrect
(el)
extensions/amp-carousel/0.2/test/test-e2e/test-repsonsive-slides.js:15
↓ 2 callersFunctionreddit
(global, data)
3p/reddit.js:47
↓ 2 callersFunctionrediscover
(...nodesOrContextNodes)
test/unit/core/context/test-node-subscribers.js:105
↓ 2 callersFunctionreferencesAreOnlyCallExpressions
* If the FunctionDeclaration identifier is used a manner besides a CallExpression, bail. * @param {BabelPath} path * @param {string} name * @
build-system/babel-plugins/babel-plugin-transform-function-declarations/index.js:85
↓ 2 callersMethodrefresh
()
extensions/amp-list/1.0/component.type.js:34
↓ 2 callersFunctionrefreshFromBuffer
(start, end, buffer)
third_party/inputmask/inputmask.js:1150
↓ 2 callersMethodregister
* Register an `amp-live-list` instance for updates. * * @param {string} id * @param {!./amp-live-list.AmpLiveList} liveList
extensions/amp-live-list/0.1/live-list-manager.js:256
↓ 2 callersMethodregister
* Registers the window-scoped service against the specified {@code * recommendationsOb}. Only the first call to this method will be used, any *
extensions/amp-next-page/0.1/next-page-service.js:123
↓ 2 callersMethodregisterAllMedia_
* Registers all media on this page. * @return {!Promise} Promise that resolves after the callbacks are called. * @private
extensions/amp-story/1.0/amp-story-page.js:1293
↓ 2 callersMethodregisterElementInWindow_
* @param {!Window} win * @param {string} name * @param {typeof ../base-element.BaseElement} implementationClass * @private
src/service/extensions-impl.js:388
↓ 2 callersMethodregisterEventListener
* Notified of any event sent to SubscriptionAnalytics. The parameters * passed to the listener are: * 1) The type of event. This should event
extensions/amp-subscriptions/0.1/analytics.js:76
↓ 2 callersMethodregisterEvents_
* Register events * @private
extensions/amp-image-slider/0.1/amp-image-slider.js:520
↓ 2 callersFunctionregisterIniLoadListener
(ampdoc)
src/inabox/utils.js:13
↓ 2 callersMethodregisterMenuItem_
* Register the given menu item by adding appropriate classes, accessibility * attributes and event listeners to its children. * @param {!Element
extensions/amp-mega-menu/0.1/amp-mega-menu.js:169
↓ 2 callersMethodregisterServiceWorker
* Sends a message to the helper iframe with the service worker URL and * registration options and requests the iframe to register the service *
extensions/amp-web-push/0.1/web-push-service.js:354
↓ 2 callersMethodregisterSingleton
* Attempt to register a singleton for each ampdoc. * Caller need to handle user error when registration returns false. * @param {!../enums.AMPDO
src/service/ampdoc-impl.js:776
↓ 2 callersFunctionregisterViolationListener
()
src/friendly-iframe-embed.js:165
↓ 2 callersMethodrejectExitServiceForDoc
* @param {!Element|!../service/ampdoc-impl.AmpDoc} elementOrAmpDoc * @param {!HostServiceError} error
src/inabox/host-services.js:141
↓ 2 callersMethodrejectFullscreenServiceForDoc
* @param {!Element|!../service/ampdoc-impl.AmpDoc} elementOrAmpDoc * @param {!HostServiceError} error
src/inabox/host-services.js:110
↓ 2 callersMethodrejectVisibilityServiceForDoc
* @param {!Element|!../service/ampdoc-impl.AmpDoc} elementOrAmpDoc * @param {!HostServiceError} error
src/inabox/host-services.js:79
↓ 2 callersMethodrelease_
* Sets or animates pan/zoom parameters after release of the gesture. * @return {!Promise} * @private
extensions/amp-image-lightbox/0.1/amp-image-lightbox.js:719
↓ 2 callersMethodrelease_
* Sets or animates pan/zoom parameters after release of the gesture. * @return {!Promise} * @private
extensions/amp-image-viewer/0.1/amp-image-viewer.js:909
↓ 2 callersFunctionremapDependenciesPlugin
* Generates a plugin to remap the dependencies of a JS bundle. * * `remaps` is an object where each entry indicates that the module identified by th
build-system/tasks/remap-dependencies-plugin/remap-dependencies.js:18
↓ 2 callersMethodremove
* Removes the observer from this instance. * @param {function(TYPE=):void} handler Observer's instance.
src/core/data-structures/observable.js:36
↓ 2 callersFunctionremoveAmpJsParamsFromSearch
* Removes parameters that start with amp js parameter pattern and returns the * new search string. * @param {string} urlSearch * @return {string}
src/url.js:459
↓ 2 callersMethodremoveAtIndex
* Removes the task and returns "true" if dequeueing is successful. Otherwise * returns "false", e.g. when this task is not currently enqueued. *
src/service/task-queue.js:137
↓ 2 callersMethodremoveCloseEventListener
* Removes the event listeners that close the iframe and make the body visible.
third_party/subscriptions-project/swg.js:11801
↓ 2 callersFunctionremoveFromArray
* @param {Object} fixer * @param {Node} node
build-system/eslint-rules/forbidden-terms-config.js:37
↓ 2 callersFunctionremoveFromJsonConfig
* @param {!{[key: string]: *}} config * @param {string} path * @param {string} id * @return {Array<string>} modified files
build-system/tasks/sweep-experiments/index.js:119
↓ 2 callersFunctionremoveLabels
* Remove label from PRs * @param {string} head * @param {string} base * @param {string} channel * @param {Object|undefined} octokitRest * @param
build-system/release-tagger/label-pull-requests.js:65
↓ 2 callersMethodremoveOnScrollListener_
* The function that remove listener to viewport onScroll event. * @private
extensions/amp-sticky-ad/1.0/amp-sticky-ad.js:178
↓ 2 callersMethodremovePaddingToHtml_
* Removes previouly added bottom padding from the document. * @private
third_party/subscriptions-project/swg.js:11302
↓ 2 callersMethodremovePageviewStateToken
* Checks for the presence of a pageview token in the module level object * and removes it if present.
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1993
← previousnext →6,601–6,700 of 18,703, ranked by callers