JS 循环插件在 IE11 中不工作。对象不支持 属性 或方法 'cycle'

JS cycle plugin not working in IE11. Object doesn't support property or method 'cycle'

我已经使用了 http://jquery.malsup.com/cycle/ 的插件,并且尝试使用新的(Cycle2)和旧的。旧的是当前正在使用的那个,它适用于除 IE11 之外的所有浏览器。它甚至适用于旧版本的 IE,但不适用于最新版本。这让人非常沮丧。我已经对此进行了 2 天的研究,但没有运气。任何帮助深表感谢。以下是失败的代码:

if ($("#home").length >= 1) {
    yepnope({
        load: '/js/plugins/jquery.cycle.all.js',
        complete: function() {
            //intro animation
            var baseT = 3500;
            $("#intro img").fadeOut(baseT + 1000, function() {
                $(this).attr("src", "/images/intro_cleaner.jpg").fadeIn(100);
            });
            $("#intro h1").animate({
                left: '-1745px'
            }, baseT, function() {
                $(this).fadeOut(750);
                $("#intro").fadeOut(baseT, function() {
                    $("#home .stories").show();
                });
            });

            //featured stories
            $("#home .stories").cycle({
                fx: 'scrollHorz',
                prev: '#prev',
                next: '#next',
                timeout: baseT + 7000,
                before: function(curr, next, opts, fwd) {
                    $("#total-slides").text(opts.slideCount);
                    $("#slide-num").text($(next).index() + 1);
                }
            });

经过研究和调试,我发现原因是yepnope没有加载运行方法循环所需的JS文件。为了解决这个问题,我刚刚发布了加载 JS 文件的脚本标签。这可能会降低网站速度,但我需要快速修复,因为这是一个生产问题。我发现 yepnope 已被弃用,IE11 不支持其中的代码。通过 http://yepnopejs.com/ 找到这个 yepnope 有替代方法,例如 http://headjs.com/ 希望其他人觉得这很有用。