To preload given a and an optional , which is an algorithm accepting a :
Let reportTiming given a be to for controller given 's .
If entry's response is not null, then call reportTiming given document.