You can load our Chat Widget Loader code with RequireJS, too. It's totally simple and you are able to pass additional options to configure the Widget setup.
The options can be passed as an object to the "load" method. Available options are:
|You can prevent the API methods from being bound to the window object.|
|You can pass your own on-ready callback function.|
|You can pass your own on-remote-ready callback function.|
|If you want to initialize your Widget with custom data you can pass your object to the custom_data option.|
After loading the Chat Widget with a module loader you are still able to reference the Widget in the global scope by calling the "window.userlike" object.