Installing JQuery Plugins

contactjw

Quote from: contactjw on June 28, 2016, 11:08:48 PM
Quote from: jacobi22 on June 28, 2016, 07:12:04 PM
deactivate this line (if in use in your template)
register_frontend_modfiles('jquery');

if you use SP6, go to AdminTools -> Frontend Output Filter and deactivate the Jquery, if its activated

at last step, add your favorite jquery file into your template folder and add the code to load it in your index.php from the used template. be sure, that you use the correct path (in example in a sub-directory of the template)

<!-- jQuery  -->
<script src="<?php echo TEMPLATE_DIR?>/js/jquery.min.js"></script>


OK, thanks. Will give it a try and see how it goes.

FYI everything is working great. Pages are loading under 1.5 seconds. Thanks!

contactjw

Quote from: jacobi22 on June 28, 2016, 07:12:04 PM
deactivate this line (if in use in your template)
register_frontend_modfiles('jquery');

if you use SP6, go to AdminTools -> Frontend Output Filter and deactivate the Jquery, if its activated

at last step, add your favorite jquery file into your template folder and add the code to load it in your index.php from the used template. be sure, that you use the correct path (in example in a sub-directory of the template)

<!-- jQuery  -->
<script src="<?php echo TEMPLATE_DIR?>/js/jquery.min.js"></script>


OK, thanks. Will give it a try and see how it goes.

Gast

deactivate this line (if in use in your template)
register_frontend_modfiles('jquery');

if you use SP6, go to AdminTools -> Frontend Output Filter and deactivate the Jquery, if its activated

at last step, add your favorite jquery file into your template folder and add the code to load it in your index.php from the used template. be sure, that you use the correct path (in example in a sub-directory of the template)

<!-- jQuery  -->
<script src="<?php echo TEMPLATE_DIR?>/js/jquery.min.js"></script>

contactjw

Hi Ruud,

I was thinking about  loading the JQuery file myself instead of using the wb installed JQuery. Reason is I don't think I need the other three resources, insert.js, include.js, and theme.js, that seem to be packaged with the wb JQuery. As far as I can tell they just unnecessarily slow down the page loading. Any reason I shouldn't do that?

contactjw

Quote from: Ruud on June 26, 2016, 11:26:33 PM
Sure, no problem.

OK. Thanks. Got the plugin installed with a conditional statement so it loads only on one page. Works great!

Ruud

[url=https://dev4me.com/modules-snippets/]Dev4me - WebsiteBaker modules[/url] - [url=https://wbhelp.org/]WBhelp.org[/url]

contactjw

Just wondering if I can install a jquery plugin by simply adding the code to the footer of my template using the usual formats?