performance - High Javascript CPU use for webapp -
i've reached point i'm fishing , hoping catch something.
the chrome performance tool shows whole cpu (so far tool detects, @ least) taken timeupdate
events, nothing else firing. event isn't referenced anywhere in code or in dependencies (via github search).
i reached point ran $("body").empty().off()
, $(window).off()
remove events , elements doing anything, , inserted debugging code loop through functions , redefine them undefined
.
i ran logging on setinterval
, settimeout
clear of those.
i worked through chrome inspector's "event listener" tab , manually removed events.
i run cleanup helper nukes else think of:
window.cleanupelements = -> $("*").off() $("style").remove() $("link").remove() $("script").remove() false
this white page no body content, functions, timers, intervals, or events still sitting pretty @ 50%+ cpu use.
ideas?
Comments
Post a Comment