Git Product home page Git Product logo

Comments (9)

tylernotfound avatar tylernotfound commented on August 15, 2024

Well, this is not an issue with the plugin. You have MIME-TYPE warnings on the page, and your plugin.js and script.js are not being loaded. Once you sort out your js loading, everything will be in order.

from flexslider.

anselmh avatar anselmh commented on August 15, 2024

Both scripts are loaded. MIME type errors are correct and are the concept of the yepnope.js plugin. As you can see in console, both plugins.js and scripts.js are loaded.

from flexslider.

anselmh avatar anselmh commented on August 15, 2024

It's indeed a problem with yepnope.js but I'm not sure if it's related to flexslider or to yepnope.js. Never had such problems with other plugins/sliders etc.
Problem seems to be that scripts.js (which is where the function call is for flexslider) is loaded in parallel to plugins.js where flexslider.js is loaded in. They're executed in order by yepnope.js but the asynchronous load seems to cause problems.

from flexslider.

tylernotfound avatar tylernotfound commented on August 15, 2024

My fault, I misspoke/wasn't clear enough.

I am experiencing the inconsistency issue you are talking about, but it only happens when the warnings are present and the js files are interpreted as Image(s). The script files are being loaded, but I suspect the warnings paired with the slider failing to load are not a coincidence.

I'd be interested to see if that console log fires when the warnings are present/the slider does not initialize. Did you test that?

from flexslider.

anselmh avatar anselmh commented on August 15, 2024

I'd be interested to see if that console log fires when the warnings are present/the slider does not initialize. Did you test that?

Which console.log? Mine? It fires(!) which confuses me. So it seems both, script and function call, are loaded and executed but not appended to DOM?

from flexslider.

tylernotfound avatar tylernotfound commented on August 15, 2024

The console.log that was within the .flexslider(), basically saying the slider was loaded. This is a very curious issue.

If I were debugging it, I would line up a few console.log's across the script files to see what failed to fire/their firing sequence (to make sure the loading is happening as expected). I can't imagine what my script would be doing that would interfere where others do not.

from flexslider.

anselmh avatar anselmh commented on August 15, 2024

I will try to find out. From what I know now I don't think it's your script code.

Maybe your script is too small lol – most of the other plugins are bigger indeed.

from flexslider.

badlydrawnrob avatar badlydrawnrob commented on August 15, 2024

Did this get resolved? FlexSlider isn't working for me at all with yepnope.js, real shame as I need to switch it off for mobile with modernizr.mq

from flexslider.

badlydrawnrob avatar badlydrawnrob commented on August 15, 2024

Not to worry, it seems Flexslider is best called with complete: function() { } making sure to load it as a separate file. Doesn't seem to play nice minified with a bunch of other JS, especially if it's loading in an Ajax tab.

from flexslider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.