dev: add lazy render option for UIElement

This commit is contained in:
KernelDeimos
2025-05-17 15:23:02 -04:00
parent da66b03163
commit 7823fdfab0

View File

@@ -126,7 +126,9 @@ export default def(class UIElement extends AdvancedBase {
style.textContent = this.constructor.CSS;
document.head.appendChild(style);
}
this.make(this);
if ( ! this.constructor.LAZY_RENDER ) {
this.make(this);
}
}
reinitialize () {