jQuery UI Widgets › Forums › Grid › Reduce number of HTTP requests on page while building jqxGrid
Tagged: jqwidgets, jqx-all.js, jqxcheckbox, jqxData, jqxDropDownList, jqxgrid, jqxListBox, js, script
This topic contains 6 replies, has 2 voices, and was last updated by nitinayir8 9 years, 9 months ago.
-
Author
-
Hi Admin,
How to reduce the number of http request on page load while building grid. Currently it makes a separate call to use each components
e.g. to use listbox, dropdownlist, checbox, jwxgrid, etc widgets, we need to make separate http request call to each of this js which increases page load time.Is there anyway to combine this all js into single js file for production.
e.g.
http://www.example.com/jqwidgets/jqxscrollbar.js
http://www.example.com/jqwidgets/jqxmenu.js
http://www.example.com/jqwidgets/jqxcheckbox.js
http://www.example.com/jqwidgets/jqxlistbox.js
http://www.example.com/jqwidgets/jqxdropdownlist.js
http://www.example.com/jqwidgets/jqxgrid.js
http://www.example.com/jqwidgets/jqxdata.js
http://www.example.com/jqwidgets/jqxgrid.selection.js
http://www.example.com/jqwidgets/jqxgrid.filter.js
http://www.example.com/jqwidgets/jqxgrid.sort.js
http://www.example.com/jqwidgets/jqxgrid.edit.js
http://www.example.com/jqwidgets/jqxgrid.pager.js
http://www.example.com/jqwidgets/jqxcalendar.js
http://www.example.com/jqwidgets/jqxnumberinput.js
http://www.example.com/jqwidgets/jqxdatetimeinput.js
http://www.example.com/jqwidgets/jqxexpander.jsany help will be appreciated.
Thanks,
NitinHello Nitin,
There already is such a file – jqx-all.js. In the download package, you can find it in the same folder as the other jQWidgets script files.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
Yes, we tried that but the only problem is that file size is 5.51MB and its takes more time to load around 630ms which affects page load time. Can you suggest how we can minify this js file, it will be great help for us.
Thanks,
NitinHi Nitin,
All files from the public download package, including jqx-all.js, are already minified.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
Since we are using paid version of jqwidgets library, files we use are from ver3.7.1-development and not from public. Is it going to make license issue, if we make use of public js file?
Thanks,
NitinHi Nitin,
If you are a licensed customer, you can use both versions.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
Thanks for suggestion.
regards,
Nitin -
AuthorPosts
You must be logged in to reply to this topic.