infragistics.js combined all controls js, it's too huge, over 2M even minified.
infragistics.loader.js is lightweight, it will raise more http request. Look the grid control which is the most commonly used in out application.
Almost 20 request raised.
Code:
Hello Loston,
I have sent your product idea “Add the ability to switch css location in the igLoader” directly to our product management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this product idea is PI12090130.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Hi, AgentD5
I'will appreciate you if you add a switch in jsloader in future. I think it's a good feature.
Hi Loston,
Actually you could modify the loader JS file to not load css by removing the css dependency from the control of interest. For example, look at the grid:
/// igGrid /// { widget: 'igGrid', dependency: [{ name: 'igUtil' }, { name: 'igDataSource' }, { name: 'igTemplating' }, { name: 'igShared' }, { name: 'igScroll'}], scripts: ['$path$/modules/infragistics.ui.grid.framework.js'], locale: ['$localePath$/infragistics.ui.grid-$locale$.js'], css: ['$path$/structure/modules/infragistics.ui.grid.css'], regional: ['$localePath$/regional/infragistics.ui.regional-$regional$.js'] },
If you remove the bold css part, then the loader will think the grid has no css to load to work. You could do this for all widgets and just load the structure/themes yourself.
regards,
David Young
Hello Loston,Thank you for your feedback. If you have any other questions related to the script and css loading do not hesitate to ask.
Yes! You understand my question correctly and I understand your answer clearly too.
So there's no any way to optimize it, I see!