WIP: Allow renderjs from JS only, without initial gadget-tag/script-tag
I thus added functionallity to renderjs to initialize manually, after pageload. See the forum entry here.
Instead of registering
DOMContentLoadedevent directly, a deferred promise is used which gets resolve either by the event, or by a manual call of
An additional change is required to prevent renderjs bootstrapping multiple times when first loaded via
$.getScript, and later included in a gadget via
<script>(Line 685). I am not sure if this is the best way to do things though and if it breaks other stuff.