-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem loading Codemagic during first visit or with empty/disabled cache #21
Comments
Unfortunately I'm still not skilled enough with require.js to debug/fix this issue. It could be an issue related to cache busting that h5bp uses to cache files for a long period of time. Or it could be a huge require.js failure from my side (maybe there is something in require.js and AMD that i'm not understanding?). I always test the result on the developer (local) and production (http://codemagic.gr) servers to make sure there aren't any speed & loading issues, that's why this kinda surprised me. I also tested it myself with chrome, IE and firefox in linux and windows (clearing the cache and all) so it shouldn't be related to a browser. I will try to dig deeper soon. thank you for taking the time to file the bug! |
Yes my Wifi/ADSL connection is not reliable nor performant. ... only good enough to spot these kind of asynchronous bugs :) Diego On Mon, Mar 11, 2013 at 4:22 PM, Adonis K. notifications@github.com wrote:
|
@dperini do you or your ISP use some kind of a proxy? Because the way I'm versioning the files is through a GET parameter and some proxies ignore GET parameters, so your browser wouldn't know that I updated the files and use the old ones |
I have the browser cache disabled, there should be no 'old' files. And no, I am not behind a proxy so discard that possibility. |
I see what you mean, I just managed to reproduce it myself. |
Just retried with these browsers: FF, Safari, Chrome, Opera. It seems "jsuri" was not the problem. |
Ok, it seems like I will need to study requireJS a bit more and either fix the issue or move away from it. |
Adonis, I retested this and I can confirm the problem is solved. |
Thanks again for spending your time debugging this for me. |
I have tested on Firefox, Safari and Chrome that:
doesn't load correctly when accessed for the first time (with empty/disabled cache).
It is always reproducible on my iMac, just disable the cache in your browser and reload it.
Initially, at load time, some part of the UI is visible while the editors are not visible until subsequent page reloads.
The problem is related to differences in how the page is handled during the first visit and successive reloads from the cache.
So the problem will show itself during the first visit to the page (was my case) and after clearing the cache, or if the user have completely disabled the cache.
It seems related to the RequireJS loader miserably failing to load the "libs/jsuri" file.
The error I get in the console of all the mentioned browsers is:
so the error seems clear enough to me.
Differences in network speed/latency may create these problems in poorly designed/tested loaders. Hope you can fix it, also not the easiest thing.
Diego
The text was updated successfully, but these errors were encountered: