Topic-icon jq-bootstrap-1.8.3.js

Active Subscriptions:

None
10 years 3 months ago #40676 by flux3
jq-bootstrap-1.8.3.js was created by flux3
I have just installed JFBConnect and notice that there is a file loading called jq-bootstrap-1.8.3.js which is a huge 400Kb and more then doubles my page size and this is with the setting "Load Jquery/Bootstrap" Disabled.
If i am already loading bootstrap js and css do i still need this file to load?
Im just wondering if this file is essential for the functioning of all parts of JFBConnect or can i stop it loading and just add my own styling for specific JFB elements? and continue to use the bootstrap that is already loading?

I thought Joomla moved to bootstrap so all component devs could tap into the same styling/js to avoid this exact problem but it seems like Jomsocial also uses their own customised bootstrap files which is causing me problems for page size.
The topic has been locked.
Support Specialist
10 years 2 months ago #40683 by alzander
Replied by alzander on topic jq-bootstrap-1.8.3.js
The "Enable jQuery/Bootstrap" setting should remove that file from being included. I'm not sure why it would still be there if you disabled that.

JFBConnect does require that both jQuery and Bootstrap are loaded into your site. However, if you already have that taken care of on all pages, you can disable our inclusion.

Just for reference, yes, Joomla 3.0 does include the jQuery/Bootstrap libraries. However, not all extensions use that copy, which makes things very difficult for us. Additionally, if the bootstrap.js file is loaded twice on a page (once by Joomla and another by a 3rd party extension), *neither* will work. Bootstrap absolutely can't be loaded twice. Because of those oddities, JFBConnect has it's own specialized version of jQuery/Bootstrap which only works with JFBConnect. Yes, it means more page size, but it also means that it just works and other extensions can't conflict with it.

We're working to improve our Javascript and CSS loading over the next few releases to optimize things and decrease page load speed.

I hope that helps explain, but should you have any other questions, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 2 months ago #40688 by flux3
Replied by flux3 on topic jq-bootstrap-1.8.3.js
Thats a big help, thanks. I just wanted to check that excluding that file wont limit any of the functionality. NOw im off to explore this wonderful component.
The topic has been locked.
Support Specialist
10 years 2 months ago #40692 by alzander
Replied by alzander on topic jq-bootstrap-1.8.3.js
It really shouldn't affect functionality... with the caveat that everything needs to be setup right with no conflicts already on your end :D

Of course if you have any questions, run into any issues, or have any suggestions, just let us know, and we'll help however we can!

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.