In General, a single widget file ej.web.all.min.js file is used to load any of the Syncfusion widgets – but with the introduction of new AMD modules, it is not necessary to refer the entire script files in the project – just adding the script reference for RequireJS is enough – as it loads only the required widgets scripts at the required time.
The local module structure is as follows – where all the widget modules are placed under the assets folder. For detailed information on assets folder structure, refer here.
You can find the require.min.js from the following installed location of your machine,
Using RequireJS to create a Syncfusion treeView widget
CDN link reference
Local reference of Scripts and Stylesheets
The above specified CDN links can also be replaced with the local scripts and Stylesheets. To do so, simply copy the assets folder from the installed location on your machine into the sample application directory and then refer it in your sample code as shown below. For referring the stylesheets locally, refer here.
Running the above code will display the output as shown below - where only the scripts required to render the treeView control are loaded,
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|