Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

lytebox.js, mootools.js and slimbox.js - a few questions

  • ivanzhelev
  • ivanzhelev's Avatar Topic Author
  • Offline
  • New Member
More
16 years 1 month ago - 16 years 1 month ago #12504 by ivanzhelev
Are mootools.js, slimbox.js and lytebox.js incompatible with other .js libraries? If yes - which are these libraries.
Is it possible to reduce the size of lytebox.js, mootools.js and slimbox.js. The first one is 32kb, and the other 2 are about 25kb(both). Are these libraries loaded on every page or the browser saves them on the first load?

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
16 years 1 month ago #12505 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: lytebox.js, mootools.js and slimbox.js - a few questions
Hi my friend!

Until know the only problem with incompatibilities is with the mootools library.
If the mootools library is just loaded cause the template or other plugin
make problems with the mootools that load also the sig pro.

For these reason we say to change the popup engine to Greybox or Lytebox that don't use mootools.

Usually the browser cache the javascript code, if you mean that!

Also, you can insert the next code in the plugin, if you want to escape the plugin, if in the text there aren't any {gallery} tag
if (preg_match_all("#{gallery}(.*?){/gallery}#s", $row->text, $tmp, PREG_PATTERN_ORDER) < 1) {
 $row->text = preg_replace( "#{gallery}(.*?){/gallery}#s", "" , $row->text );
 return;
}

Thank you!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum