-
-
Notifications
You must be signed in to change notification settings - Fork 426
Some script tags seems to loading twice #773
Comments
@georgeu2000 can you paste a |
Here is an updated HTML page: <!DOCTYPE html>
<html>
<head>
<title>Home Page</title>
<script src='/js/foo.js'></script>
<script src='/js/bar.js'></script>
<script src='/js/baz.js'></script>
</head>
<body>
Welcome to the app.
</body>
</html>
All JS files are empty. The debug seems to show the same as my Rack logging. All but the first script is requested twice. Each time I run it, I see these logs in the same order:
So, is it possible that it is re-requesting remaining JS files when the first JS file is received? BTW and FWIW, I integrated Capybara Webkit into Capybara Jasmine. |
I've confirmed this locally. It appears to be an aggression introduced between 1.4.1 and 1.5.0. |
@mhoran I've confirmed that the call to Given this issue and #764, I think we may need to rethink how we deal with caching. It looks like #713 and #724 were the original issues that to disabling the cache; does that sound right? |
Fascinating. We should probably back this change out, then. I never experienced the behavior described in #713, but we did experience #724 at Kitchensurfing. This change resolved the issue for us, and we didn't see any of these unintended side effects. However, it seems the consequences may be worse than the original bug. I don't think I was ever able to resolve the issue by changing any configuration in Rails itself. We tried removing the |
I'm thinking the best thing we can do is try to make it as similar as possible to what a recent Selenium/Firefox setup would do. I'll try adding some more Selenium parity specs and see what I can do to make things line up. |
I opened #775 to address this. |
It seems that all but the first script tag is requested twice:
The text was updated successfully, but these errors were encountered: