datacamp / datacamp/datacamp-light

DCL.instance initiliaze? Other than window.load

Open
#178 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.4k
Forks
366
Avg merge
2h 17m
Merged PRs (30d)
2

Description

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 }); }

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names DCL.instances and window.onload but no source files or tests. Start by locating the TypeScript code that initializes DCL.instances and handles the window load lifecycle. Done would require a supported callable initialization path, with the feedback-listener usage documented or tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.