Welcome Guest Search | Active Topics |

Uniting js files on server side
Voltegirev
#1 Posted : Saturday, October 21, 2017 6:11:33 AM(UTC)
Rank: Newbie

Groups: jQueryDV, Registered
Joined: 6/8/2017(UTC)
Posts: 9

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Is it ok to perform file concatenation on server-side (using gulp or any other build system) for files:
jquery.jqChart.min.js, jquery.jqRangeSlider.min.js, jquery.mousewheel.js?

For some reasons, after having them concatenated (without any additional processing), we get following error in browser:
"Uncaught TypeError: (intermediate value).....(intermediate value)(...) is not a function"
Dragan
#2 Posted : Tuesday, October 24, 2017 4:46:44 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

It is ok to concatenate the files, but you still need to include reference to the jQuery library.

Code:
<script src="../../js/jquery-1.11.1.min.js" type="text/javascript"></script>
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.298 seconds.