Jump to content

Archived

This topic is now archived and is closed to further replies.

eusebius

How to Remove FlexSlider JS?

Recommended Posts

eusebius

Hello,

When running an analysis of my site speed using Pingdom, I observed the site was loading the javascript for the Quickslider section, even though it is not active on my site. I have two questions:

1. Why is DMS loading resources for inactive sections? Shouldn't it be smart enough to queue resources as needed?

2. How can I dequeue this Flexslider,js from my site using my child theme's functions.php?

Thanks so much

Share this post


Link to post
Share on other sites
Danny

Hi,

Can you provide a link to your site please and a screenshot of your Pingdom result so we can see what you're referring to.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • highlandmartin
      By highlandmartin
      Most of the site is working as expected, but I am having trouble with the css to change the font sizing in the slider. When I make changes to the styling classes in the slider configuration, for example:
       
      .flex-caption { font-size: 20px; }
       
      It doesn't update the slider. Either my css is not inheriting correctly, or I'm missing the syntax, or I'm missing something entirely.
       
      If I try to format the slider text directly with markup.. <h2>Hello this is slider text</h2>, it throws all of the text at the bottom of the slider image. Can anyone provide some guidance on where to check to see why the updates aren't inheriting, and also some guidance on what can/can't be done in the slider text, or best practices?
       
      Thanks!
    • Objectif-Mariage
      By Objectif-Mariage+
      Hello , 
      i'm trying to use an external slideshow (for differnets reasons) , and i'm not manage to . 
       
      If seen here (http://www.woothemes.com/flexslider/) , and here (http://www.megaptery.com/2011/10/flexslider-un-slider-jquery-responsive-design.html), explanation ton install the slideshow ,  i'have tried booth (they are allmost the same) , but nothing happen ... so i wonder if i have made something wrong ....
       
       
      So this is what i'have put in my section personnalisation > script personnalisation :
       
      <script type="text/javascript" src="jquery-1.6.2.min.js"></script> <script type="text/javascript" src="jquery.flexslider.js"></script> <script charset="utf-8" type="text/javascript">    $(window).load(function() {       $('.flexslider').flexslider();    }); </script>     And this is what i have put into the code of the page : http://www.objectif-mariage.fr/testflexslider/     <div class="flexslider">   <ul class="slides">  <li><img src="http://www.objectif-mariage.fr/wp-content/uploads/2014/05/photographe-mariage-region-parisienne-groupe-22.jpg" alt="" /></li> <li><img src="http://www.objectif-mariage.fr/wp-content/uploads/2014/05/photographe-mariage-region-parisienne-groupe-21.jpg" alt="PageLines- photographe-mariage-region-parisienne-groupe-21.jpg" /></li> <li><img src="http://www.objectif-mariage.fr/wp-content/uploads/2014/05/photographe-mariage-region-parisienne-groupe-23.jpg" alt="PageLines- photographe-mariage-region-parisienne-groupe-23.jpg" /></li>   </ul> </div>   I have probably missed something, but what ?  Can you help me ?    Thank's ,    Alexandre    
       
       
×