package js_of_ocaml
Compiler from OCaml bytecode to JavaScript
Install
Dune Dependency
Authors
Maintainers
Sources
js_of_ocaml-4.0.0.tbz
sha256=df02f819e5b2f48234af2b3e3e7c9781afa8212f8bece7ebcfbd8358b394495e
sha512=92e822849c8be14ce0428f7f4be3991449f76e65d408073a5b8b9674ba2d099439027aa11618b603c7ee31a179cf6976d54a929917a69b269425f0367926c200
doc/js_of_ocaml/Js_of_ocaml/PerformanceObserver/index.html
Module Js_of_ocaml.PerformanceObserver
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
()
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)"
>