Example program measuring Pyscript load time
Loading page ...
import time
import js
from js import document
def main():
now = time.time_ns() / 1000000
start = js.start_time
delta = (now - start) / 1000
document.getElementById("msg").innerHTML = 'Total start time: ' + str(delta) + ' seconds'
main()