To focus the search input from anywhere on the page, press the 'S' key.
in-package search v0.1.0
package js_of_ocaml
-
js_of_ocaml
-
-
js_of_ocaml.deriving
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
PerformanceObserver API
A code example:
if (PerformanceObserver.is_supported()) then
let entry_types = [ "measure" ] in
let f entries observer =
let entries = entries##getEntries in
Firebug.console##debug entries ;
Firebug.console##debug observer
in
PerformanceObserver.observe ~entry_types ~f
()
- see https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver
for API documentation.
class type performanceObserverInit = object ... end
class type performanceEntry = object ... end
class type performanceObserverEntryList = object ... end
class type performanceObserver = object ... end
val performanceObserver :
((performanceObserverEntryList Js.t ->
performanceObserver Js.t ->
unit)
Js.callback ->
performanceObserver Js.t)
Js.constr
val observe :
entry_types:string list ->
f:(performanceObserverEntryList Js.t -> performanceObserver Js.t -> unit) ->
performanceObserver Js.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>