protected void DisposeScripts() { foreach (var script in _scriptsToDispose) script.Dispose(); _scriptsToDispose.Clear(); _scripts.Clear(); }