Question Asked:

Is there a version of bearhug that doesn't load its own jquery library? Posted 2 years ago by Tom in BearHug

Hello, while looking into some ways to optimize front-end load on our website, we noticed that bearhug happens to load its own version of jquery under the global 'bearhug' object (e.g. bearhug.jquery). since we already use jquery on our pages, i was wondering if it might be possible get a version that can work with that pre-loaded library, so we can reduce the amount of overall javascript the browser has to download for our pages. thanks!

This is the answer to the question:

2 years ago by Artem Nezvigin (Staff Member)

Hi Tom,

We have added a new, slimmed down, version of the the widget javascript file for you to use. It has been reduced to a tiny 2000 bytes. Hope that helps!

Instead of using this URL:

http://[yoursite].bearhugapp.com/media/js/widget-overlay.js

Use:

http://[yoursite].bearhugapp.com/media/js/widget-overlay-slim.js

2 replies to this question Post your own

Answered 2 years ago by Artem Nezvigin (Staff Member)

Hi Tom,

We have added a new, slimmed down, version of the the widget javascript file for you to use. It has been reduced to a tiny 2000 bytes. Hope that helps!

Instead of using this URL:

http://[yoursite].bearhugapp.com/media/js/widget-overlay.js

Use:

http://[yoursite].bearhugapp.com/media/js/widget-overlay-slim.js

Posted last year by Karik

Great hammer of Thor, that is peowrfully helpful!