On Thu, Sep 3, 2009 at 4:28 AM, Gaurang Mistry <gaura...@gmail.com> wrote:

>
> Hello,
> I am new to jquery.
>
> I am using only hide and show functions.
>
> Do I need to include whole jquery file ?
> Which part of file I need to remove ?
>

I think manipulating the core file in any way is a bad idea.  I mean orders
of magnitude bad.

You're only using hide and show now.  What if a week from now you want to
toggle() something?  What if you want to get or set an attribute value via
attr()?  What if you want to... well, you get the picture.

The whole jquery file is relatively small.  Especially if it's minified.
You can also load it up via google.  This way it'd already be cached in a
user's browser if they've previously gone to a site that called the jQuery
code from google.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js
"></script>

But really... modifying the core file is the absolute last thing I'd
suggest.

-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.

Reply via email to