1 Reply Latest reply on Oct 2, 2013 11:16 AM by toby stokes

    Why is edge loading the same files multiple times

    nkukard

      edge.png

      From the image above you can see that

       

      "jquery" loaded twice @ 91kb = 181kb
      edge 1.5 loaded twice @ 102kb = 204kb

      aswell as the edge and edge actions files loaded twice

       

      and if i boot strap comps together the images are loaded multiple times aswell


      Can any one tell me if this bug will be fixed anytime soon cant use edge in any production enviroment otherwise

        • 1. Re: Why is edge loading the same files multiple times
          toby stokes

          Feature Not A Bug

           

          from http://yepnopejs.com/ :

           

          I'm seeing two requests in my dev tools, why is it loading everything twice?

          Depending on your browser and your server this could mean a couple different things. Due to the nature of how yepnope works, there are two requests made for every file. The first request is to load the resource into the cache and the second request is to execute it (but since it's in the cache, it should execute immediately). Seeing two requests is pretty normal as long as the second request is cached. If you notice that the second request isn't cached (and your script load times are doubling), then make sure you are sending the correct cache headers to allow the caching of your scripts. This is vital to yepnope. It will not work without proper caching enabled. We actually test to make sure things aren't loaded twice in our test suite, so if you think we may have a bug in your browser regarding double loading, we encourage you to run the test suite to see if the double loading test passes.