You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gowrav Vishwakarma edited this page May 3, 2019
·
2 revisions
TBC @gowrav
Few things from me:
a way, how View can register it's a dependency on certain JS / CSS files.
an API method to decide how to include that file (which can do nothing in case of minified combined js file)
a JS method to dynamically load JS / CSS by adding them into the header
ability to avoid duplication of loading same script multiple times
an example with WYSIWYG component Summernote that could be loaded dynamically in a modal.
Extended
On possible render on the component itself, should be able to return js on getJS() type of function from dynamic loading also. (For using such components as an indivdual component)
Currently, components can render them self but js doesn't get echo well. (Will put some test cases of this also)