Results 1 to 10 of 111

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default css javascript loader addon problems

    Hello.
    on my zc 139c , I have installed following .. TTP , jqlightbox.
    I also installed slider that will slide images on my index page. this slider needs jquery as well as 3 other jq plugins. my problem is with jqlightbox auto loader . as per author of this plugin , i can modify autoloader to load css jscript pages without duplication . but documents for this script is not written well, so im stuck as how to configure auto loader to load jquery and related script for that slider only on my index page.
    will appreciate anyone that can explain this in painless way ..

    ps : i have not installed CSS Javascript loader , but only jqlightbox and TTP which seems both use this loader anyway.

  2. #2
    Join Date
    Dec 2009
    Posts
    204
    Plugin Contributions
    0

    Default Re: css javascript loader

    I have the same problem, so far i tried modifying the loader.php sample to load some .js files on my home page, but it's not working as expected
    PHP Code:
    <?php

             $loaders
    [] = array('conditions' => array('pages' => array('index_home')),
                                             
    'jscript_files'             => array(
                                                                       
                                                                          
    'jquery/jquery-1.4.2.min.js'  => 10,  
                                                                          
    'fadeslideshow.js'                 => 11                                                                       
                                             
    ));

  3. #3
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: css javascript loader

    what error(s) are you getting. ?replace 'index_home' with 'index' and try to see if that helps.

  4. #4
    Join Date
    Dec 2009
    Posts
    204
    Plugin Contributions
    0

    Default Re: css javascript loader

    Thanks for that, it worked now to load the jquery library 1.4.2 and the fadeslideshow.js , but the slideshow stopped working. This thread gives explicit directions for the slideshow installation. When i'm trying to use the loader_slideshow.php, i am placing the fadeslideshow.js in my jscript folder, where i also copy the images folder.
    I'm also having doubts about loading the 1.4.2 jquery library because the one from googleapis is 1.3.2 and already minified and has a smaller size than mine loaded with C/J loader, but it's from a different domain. What do you think would be best for load time? keep the smaller size one from googleapis or the bigger one from my own domain? (well that's in case i get the slideshow working )

  5. #5
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: css javascript loader

    cj loader will minify your jquery file and will cache them on clients computer. i checked one of your site , and slide show seems to be working correctly

  6. #6
    Join Date
    Dec 2009
    Posts
    204
    Plugin Contributions
    0

    Default Re: css javascript loader addon

    Yes it is already working on lemy.co.uk but it's loaded directly from the html_header and is not minified because the files are not loaded from loader_slideshow.php, but instead from pages/index/fadeslideshow.js, exactly like in the thread i gave the link in the previous post. The loader works, it's minifying the 1.4.2 jquery library and the fadeslideshow.js(i can see them in page source), but then it is not displaying it. I suspect is from the Pictures folder needed for this slider, but i'll need to fiddle more with it because i can understand it's hard for someone to give a verdict and help me when they can't see it in action, but the site is live.

  7. #7
    Join Date
    Jul 2012
    Posts
    347
    Plugin Contributions
    0

    Default Re: css javascript loader

    Quote Originally Posted by andreitero View Post
    I have the same problem, so far i tried modifying the loader.php sample to load some .js files on my home page, but it's not working as expected
    PHP Code:
    <?php

             $loaders
    [] = array('conditions' => array('pages' => array('index_home')),
                                             
    'jscript_files'             => array(
                                                                       
                                                                          
    'jquery/jquery-1.4.2.min.js'  => 10,  
                                                                          
    'fadeslideshow.js'                 => 11                                                                       
                                             
    ));
    I am trying to load multiple .js files via loader and need to know what are these numbers for => 10, => 11. Are these sort orders?
    Also do I need to move all .js files from includes/templates/yourtemplate/jscript to ..../jscript/jquery?

 

 

Similar Threads

  1. Replies: 8
    Last Post: 26 Feb 2016, 12:41 AM
  2. css/js loader !!
    By Miff in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 28 Nov 2011, 01:19 PM
  3. CJ Loader (CSS/Javascript Loader) plugin function is not loaded by zen cart?
    By tripflex in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 11 Jul 2011, 03:55 PM
  4. Yellow1912's css javascript loader breaks Ajax EasySlider
    By dutchy in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 27 Oct 2010, 11:23 AM
  5. [support thread] Javascript loader
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 7 Nov 2009, 12:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg