Viewing 7 replies - 1 through 7 (of 7 total)
  • same issue here. Any thoughts?

    Plugin Author ti2m

    (@ti2m)

    Hi,

    that was bugging me some time ago as well, but it’s not that easy. As you can see the latest EA uses jQuery 2.x, WP uses 1.x. When using just one we would have to use the newer 2.x version. This would break a tone of other jquery plugins and hell would break loose here in the issue queue. You would also run into problems when accidentally using two different version of EA compositions on your site (anywhere on the site, not on one page). In a way you can try to accept the 2.x version as part of the EA runtime. All of the EA dependencies are being loaded async. so it shouldn’t effect your initial page load. You can use the CDN option of EA, then chances are pretty high anyway that the user has already loaded jquery 2 somewhere.

    It’s not perfect, but what is nowadays on the web.

    Thanks for your reply on this. Will try as you suggest on EA CDN.

    So essentially if you already have a jquery script or plugin that doesn’t work with jquery 2.0+ then you can’t use that and EA on the same page/site?

    Plugin Author ti2m

    (@ti2m)

    You can use plugins, but you can’t just use ONE jquery version. EA will come with its own jquery version and the plugins will build on top of wordpress’ jquery version.

    Thread Starter BSK

    (@vdsn)

    noticed these warnings in firefox console.

    The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. jquery-2.0.3.min.js
    The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. lsa-home_edge.js
    The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. edge.4.0.1.min.js
    The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. lsa-home_edgeActions.js
    Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead jquery-2.0.3.min.js:1
    Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. jquery-2.0.3.min.js:5

    i do have this set in my html head in wp. do you know what might be causing this? thanks!!
    <meta http-equiv=”Content-type” content=”text/html;charset=UTF-8″>

    Thread Starter BSK

    (@vdsn)

    also, i seem to be getting random ‘is not a function’ js errors in firebug that break my animation and other things on the page.

    when refreshing, sometimes the errors appear, and sometimes they don’t & everything looks ok. wondering if this has something to do with the order that the multiple jquery versions are loading? let me know if you have any insights on how to possibly correct this. thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how to prevent jquery loading twice?’ is closed to new replies.