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