datacamp / datacamp-light

Convert any blog or website to an interactive learning platform for data science
GNU Affero General Public License v3.0
1.31k stars 358 forks source link

DCL.instance initiliaze? Other than window.load #178

Open WeatherAnchor opened 4 years ago

WeatherAnchor commented 4 years ago

Is there any other way to initialize the dcl.instances? I always have to write my functions on window.load methods. I wanna initialize by calling my custom functions. window.onload = function () { DCL.instances["my_dc_id"].on("feedback", function(payload) { //does something here }); }