Anyway to remove jquery from spiffy?

17 views
Skip to first unread message

Santosh G Ksheersagar

unread,
Feb 28, 2013, 7:10:20 AM2/28/13
to spif...@googlegroups.com
Hi Zack,

Is there any way by which we can bundle out the jquery from spiffy. I like to use RESTUTILITY and other stuffs which in spiffy.
I like to manually include jquery and jqueryui library files in my project not through spiffy.

Regards,
Santosh

Zack Grossbart

unread,
Feb 28, 2013, 8:28:39 AM2/28/13
to spif...@googlegroups.com
Hello Santosh,

The short answer to your questions is: yes, but it's a little tricky.

Spiffy UI reference jQuery separately. If you want to use your own jQuery
just remove the jQuery import line from your HTML. It looks like this:

<script type="text/javascript" src="jquery.min.js"></script>

jQuery UI is a little tougher. That gets compiled into your project's
.min.js file by the Spiffy UI build process and you can't stop that. What
you can do is not use the default .min.js file. All of the source files for
all of the libraries are included in your Spiffy UI project. You can
reference these files directly or run the JavaScript compiler on a specific
subset of the and generate a new compiled JavaScript file with only what you
want.

You can take a look at the source for the index-debug.html page on Spiffy UI
to see how we do that:

view-source:http://www.spiffyui.org/index-debug.html

I do have to warn you here. JavaScript dependencies are a little tricky and
many of these libraries depend on a specific loading order. Your best bet
is to make sure that jQuery and jQuery UI are loaded before any of the other
code from Spiffy UI.

I'm also just curious, why do you want to load your own version of jQuery?
Are you trying to use a different version?

Thanks,
Zack
--
You received this message because you are subscribed to the Google Groups
"Spiffy UI" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to spiffy-ui+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Santosh G Ksheersagar

unread,
Mar 1, 2013, 5:40:13 AM3/1/13
to spif...@googlegroups.com, za...@grossbart.com
Hi Zack,

As part of team discussion, we had ruled out saying that we will have to place in our own jquery and jquery ui library files going forward in our project and not to be depended on other framework. And also should have an option to update the library when ever newer version is available. 
I am trying to follow your instructions to detach jquery library from spiffy. I will keep you posted with issues I face while doing the same.

Regards,
santosh
Reply all
Reply to author
Forward
0 new messages