Skip to content
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

Load timeout when using require-css, but only for new tabs #177

Open
cowwoc opened this issue Nov 7, 2014 · 11 comments
Open

Load timeout when using require-css, but only for new tabs #177

cowwoc opened this issue Nov 7, 2014 · 11 comments

Comments

@cowwoc
Copy link

cowwoc commented Nov 7, 2014

Version 0.1.7, Chrome 38.0.2125.111 m

I can reproduce a problem 100% of the time where I open a new tab, load my application and the page fails to load with:

Load timeout for modules: requireCss!css/video_unnormalized2,requireCss!webjars/jquery-ui/css_unnormalized3,requireCss!css/steps/foo_unnormalized5,requireCss!css/video,requireCss!webjars/jquery-ui/css,requireCss!css/steps/foo

  1. If I set waitSeconds: 0 the page hangs forever.
  2. If I reload the page (F5), sometimes the page loads fine (so I'm thinking this a race condition of some sort).
  3. My HTML file only contains two <script> references:
<script type="text/javascript" src="webjars/requirejs/2.1.14-3/require.js"></script>
<script type="text/javascript" src="js/RequireConfig.js" data-main="js/html/Buyer.js"></script>

where RequireConfig.js contains:

// See http://stackoverflow.com/a/22745553/14731
var scripts = document.getElementsByTagName("script");
var thisScriptTag = scripts[scripts.length - 1];
var dataMain = thisScriptTag.getAttribute("data-main");

require.config(
    {
        baseUrl: ".",
        waitSeconds: 0,
        paths:
            {
                /// my dependencies followed by....
                requireCss: "webjars/require-css/0.1.7/css"
            },
    });
if (dataMain)
    require([dataMain]);

Looking in Developer Console, Network tab I can see css.js is being found all right.

Any ideas?

@cowwoc
Copy link
Author

cowwoc commented Nov 7, 2014

You know, if you had an option for logging the actual load order at runtime then a lot of these kind of bug reports would go away. We could compare "good loads" with "bad loads" and see where the loading order differed and how it led to timeouts or circular dependency problems. This would also help us differentiate between user error and actual bugs in the library. Right now we're trying to diagnose this blind.

@guybedford
Copy link
Owner

So I guess stick waitSeconds to 0, and see if everything is loading correctly in the network tab?

@cowwoc
Copy link
Author

cowwoc commented Nov 8, 2014

@guybedford In point 1 I mentioned that waitSeconds: 0 hangs forever so that's not a solution.

Because this is a race-condition, the only way to figure out what is going wrong is for you to add more logging and have me compare the good case (where a timeout does not occur) to the bad case (where a timeout occurs) and is different between the two cases. Perhaps this issue only happens when files are loaded in a particular order.

I have a theory this could be a bug in Chrome (I am specifically eyeing https://code.google.com/p/chromium/issues/detail?id=424599) but again there is no way for me to prove one way or another without more logging on your part.

@guybedford
Copy link
Owner

Ok sure, some debugging tips:

Let me know how it goes.

@cowwoc
Copy link
Author

cowwoc commented Nov 14, 2014

I ended up implementing logging a bit differently.

I set useOnload = true as you said. I then added:

var loggedCallback = function()
{
    console.log('***** loaded ' + url);
    callback();
};

before https://github.com/guybedford/require-css/blob/master/css.js#L131 and then changed all references from callback to loggedCallback.

I believe this approach is better because we log immediately before loading the resource (as opposed to logging outside a setTimeout())

I got some odd results. When the page loads correctly I see:

***** loaded ./css/video.css css.js:168
***** loaded ./css/steps/foo.css css.js:168
***** loaded ./webjars/jquery-ui/1.11.1/jquery-ui.css 

but when a page fails to load, I see:

***** loaded ./css/steps/foo.css css.js:168
***** loaded ./css/steps/foo.css css.js:168
***** loaded ./css/steps/foo.css css.js:168
[timeout]

I only managed to reproduce this once so far so these results are shaky (I'd like to reproduce this a couple of times to make sure I see the same behavior). I'd also like to fix http://stackoverflow.com/q/26809000/14731 because I read somewhere that problems with circular dependencies sometimes trigger problems with require-css.

@guybedford
Copy link
Owner

That is a really strange failure case, perhaps add a log in https://github.com/guybedford/require-css/blob/master/css.js#L128 and https://github.com/guybedford/require-css/blob/master/css.js#L161 to see where the URL is being given wrong. If the input URL is wrong, then the issue is outside of the scope of RequireCSS!

@cowwoc
Copy link
Author

cowwoc commented Jan 2, 2015

@guybedford What values do you want me to log in https://github.com/guybedford/require-css/blob/master/css.js#L161?

@cowwoc
Copy link
Author

cowwoc commented Jan 2, 2015

I think this issue might be a bug in require.js instead of the CSS plugin.

I inserted console.log('***** require/loading: ' + url); before https://github.com/jrburke/requirejs/blob/master/require.js#L828.
I inserted console.log('***** require/defined: ' + name); before https://github.com/jrburke/requirejs/blob/master/require.js#L1658.

I got this log:

INFO: require.js 828:19 ***** require/loading: js/html/AuthenticationsPage.js
INFO: require.js 828:19 ***** require/loading: ./webjars/requirejs-domready/2.0.1/domReady.js
INFO: require.js 828:19 ***** require/loading: ./webjars/jquery/2.1.1/jquery.js
INFO: require.js 828:19 ***** require/loading: ./js/util/Utilities.js
INFO: require.js 828:19 ***** require/loading: ./js/util/ConflictingResourceException.js
INFO: require.js 828:19 ***** require/loading: ./js/net/User.js
INFO: require.js 828:19 ***** require/loading: ./js/net/Authentication.js
INFO: require.js 828:19 ***** require/loading: ./js/html/Form.js
INFO: require.js 828:19 ***** require/loading: ./js/html/Notifications.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/Preconditions.js
INFO: require.js 828:19 ***** require/loading: ./js/html/Authentications.js
INFO: require.js 828:19 ***** require/loading: ./js/util/RequestScope.js
INFO: require.js 828:19 ***** require/loading: ./js/html/LoginPanel.js
INFO: require.js 828:19 ***** require/loading: ./js/html/Html.js
INFO: require.js 828:19 ***** require/loading: ./webjars/q/0.9.7/q.js
INFO: require.js 828:19 ***** require/loading: ./webjars/sugar/1.4.1/sugar-full.development.js
INFO: require.js 828:19 ***** require/loading: ./webjars/require-css/0.1.7/css.js
INFO: require.js 828:19 ***** require/loading: ./webjars/URI.js/1.12.0/URI.js
INFO: require.js 1659:17 ***** require/defined: _@r7
INFO: require.js 828:19 ***** require/loading: ./webjars/log4javascript/1.4.10/log4javascript.js
INFO: require.js 1659:17 ***** require/defined: webjars/requirejs-domready
INFO: require.js 828:19 ***** require/loading: ./js/util/ResourceNotFoundException.js
INFO: require.js 828:19 ***** require/loading: ./js/util/AjaxWithRetry.js
INFO: require.js 828:19 ***** require/loading: ./js/util/SessionScope.js
INFO: require.js 828:19 ***** require/loading: ./js/util/UnauthorizedException.js
INFO: require.js 828:19 ***** require/loading: ./js/util/ReferenceNotFoundException.js
INFO: require.js 828:19 ***** require/loading: ./js/util/ForbiddenException.js
INFO: require.js 828:19 ***** require/loading: ./js/util/PreconditionFailedException.js
INFO: require.js 828:19 ***** require/loading: ./js/util/BadRequestException.js
INFO: require.js 828:19 ***** require/loading: ./js/util/ServiceUnavailableException.js
INFO: require.js 828:19 ***** require/loading: ./webjars/stacktrace/0.6.0/stacktrace.js
INFO: require.js 828:19 ***** require/loading: ./js/util/AssertionException.js
INFO: require.js 1659:17 ***** require/defined: _@r10
INFO: require.js 1659:17 ***** require/defined: jquery
INFO: require.js 1659:17 ***** require/defined: _@r9
INFO: require.js 828:19 ***** require/loading: ./webjars/cowwoc-jquery-address/1.6/jquery.address.js
INFO: require.js 828:19 ***** require/loading: ./js/net/Department.js
INFO: require.js 828:19 ***** require/loading: ./js/net/Call.js
INFO: require.js 828:19 ***** require/loading: ./js/net/Operator.js
INFO: require.js 828:19 ***** require/loading: ./js/util/Database.js
INFO: require.js 828:19 ***** require/loading: ./js/net/Participant.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/Utilities.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/ObjectPreconditions.js
INFO: require.js 1659:17 ***** require/defined: _@r11
INFO: require.js 828:19 ***** require/loading: ./webjars/html5-desktop-notifications/1.0.1/desktop-notify.js
INFO: require.js 1659:17 ***** require/defined: requireCss
INFO: require.js 1659:17 ***** require/defined: webjars/q
INFO: require.js 828:19 ***** require/loading: ./webjars/URI.js/1.12.0/punycode.js
INFO: require.js 828:19 ***** require/loading: ./webjars/URI.js/1.12.0/IPv6.js
INFO: require.js 828:19 ***** require/loading: ./webjars/URI.js/1.12.0/SecondLevelDomains.js
INFO: require.js 1659:17 ***** require/defined: webjars/log4javascript
INFO: require.js 1659:17 ***** require/defined: js/util/AssertionException
INFO: require.js 1659:17 ***** require/defined: webjars/stacktrace
INFO: require.js 1659:17 ***** require/defined: _@r8
INFO: require.js 828:19 ***** require/loading: ./webjars/Semantic-UI/1.2.0/semantic.min.js
INFO: require.js 828:19 ***** require/loading: ./js/net/AbstractCompany.js
INFO: require.js 828:19 ***** require/loading: ./js/net/AbstractDepartment.js
INFO: require.js 828:19 ***** require/loading: ./webjars/momentjs/2.7.0/moment.js
INFO: require.js 1659:17 ***** require/defined: js/preconditions/Utilities
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/AbstractObjectPreconditions.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/StringPreconditions.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/UriPreconditions.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/ArrayPreconditions.js
INFO: require.js 1659:17 ***** require/defined: webjars/notifications
INFO: require.js 1659:17 ***** require/defined: webjars/punycode
INFO: require.js 1659:17 ***** require/defined: webjars/IPv6
INFO: require.js 1659:17 ***** require/defined: webjars/SecondLevelDomains
INFO: require.js 1659:17 ***** require/defined: webjars/uri
INFO: require.js 1659:17 ***** require/defined: js/html/Html
INFO: require.js 1659:17 ***** require/defined: requireCss!css/Authentications
INFO: require.js 1659:17 ***** require/defined: requireCss!css/Authentications_unnormalized3
INFO: require.js 1659:17 ***** require/defined: requireCss!css/ResourceTable
INFO: require.js 1659:17 ***** require/defined: requireCss!css/ResourceTable_unnormalized4
INFO: require.js 828:19 ***** require/loading: ./js/net/Terminal.js
INFO: require.js 1659:17 ***** require/defined: requireCss!webjars/semantic-ui/css
INFO: require.js 1659:17 ***** require/defined: requireCss!webjars/semantic-ui/css_unnormalized2
INFO: require.js 1659:17 ***** require/defined: js/preconditions/AbstractObjectPreconditions
INFO: require.js 1659:17 ***** require/defined: webjars/semantic-ui/js
INFO: require.js 1659:17 ***** require/defined: moment
INFO: require.js 1659:17 ***** require/defined: js/preconditions/UriPreconditions
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/ObjectArrayPreconditions.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/StringArrayPreconditions.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/UriArrayPreconditions.js
INFO: require.js 1659:17 ***** require/defined: js/preconditions/StringArrayPreconditions
INFO: require.js 1659:17 ***** require/defined: js/preconditions/UriArrayPreconditions
INFO: require.js 1659:17 ***** require/defined: js/preconditions/ObjectArrayPreconditions
INFO: require.js 1659:17 ***** require/defined: js/preconditions/ArrayPreconditions
INFO: require.js 1659:17 ***** require/defined: js/preconditions/StringPreconditions
INFO: require.js 1659:17 ***** require/defined: js/preconditions/ObjectPreconditions
INFO: require.js 1659:17 ***** require/defined: js/preconditions/Preconditions
INFO: require.js 1659:17 ***** require/defined: js/util/ConflictingResourceException
INFO: require.js 1659:17 ***** require/defined: js/util/RequestScope
INFO: require.js 1659:17 ***** require/defined: js/util/ResourceNotFoundException
INFO: require.js 1659:17 ***** require/defined: js/util/AjaxWithRetry
INFO: require.js 1659:17 ***** require/defined: js/util/SessionScope
INFO: require.js 1659:17 ***** require/defined: js/util/UnauthorizedException
INFO: require.js 1659:17 ***** require/defined: js/util/ForbiddenException
INFO: require.js 1659:17 ***** require/defined: js/util/ReferenceNotFoundException
INFO: require.js 1659:17 ***** require/defined: js/util/PreconditionFailedException
INFO: require.js 1659:17 ***** require/defined: js/util/BadRequestException
INFO: require.js 1659:17 ***** require/defined: js/util/ServiceUnavailableException
INFO: require.js 1659:17 ***** require/defined: js/util/Utilities
INFO: require.js 1659:17 ***** require/defined: js/net/User
INFO: require.js 1659:17 ***** require/defined: js/net/Authentication
INFO: require.js 1659:17 ***** require/defined: js/html/Form
INFO: require.js 1659:17 ***** require/defined: js/net/Operator
INFO: require.js 1659:17 ***** require/defined: js/util/Database
INFO: require.js 1659:17 ***** require/defined: js/html/Authentications
INFO: require.js 1659:17 ***** require/defined: js/html/LoginPanel
INFO: require.js 1659:17 ***** require/defined: js/net/Participant
INFO: require.js 1659:17 ***** require/defined: js/net/Call
INFO: require.js 1659:17 ***** require/defined: js/net/AbstractDepartment
INFO: require.js 1659:17 ***** require/defined: js/net/Terminal
INFO: require.js 1659:17 ***** require/defined: js/net/AbstractCompany
INFO: require.js 1659:17 ***** require/defined: js/net/Department
INFO: require.js 1659:17 ***** require/defined: js/html/Notifications
INFO: require.js 1659:17 ***** require/defined: _@r6
INFO: require.js 828:19 ***** require/loading: js/html/Buyer.js
INFO: require.js 828:19 ***** require/loading: ./webjars/requirejs-domready/2.0.1/domReady.js
INFO: require.js 828:19 ***** require/loading: ./js/html/Video.js
INFO: require.js 828:19 ***** require/loading: ./js/net/User.js
INFO: require.js 828:19 ***** require/loading: ./js/html/Foo.js
INFO: require.js 828:19 ***** require/loading: ./js/html/Products.js
INFO: require.js 828:19 ***** require/loading: ./js/html/Authentications.js
INFO: require.js 828:19 ***** require/loading: ./webjars/URI.js/1.12.0/URI.js
INFO: require.js 1659:17 ***** require/defined: webjars/requirejs-domready
INFO: require.js 828:19 ***** require/loading: ./webjars/jquery/2.1.1/jquery.js
INFO: require.js 828:19 ***** require/loading: ./js/util/Utilities.js
INFO: require.js 828:19 ***** require/loading: ./webjars/q/0.9.7/q.js
INFO: require.js 828:19 ***** require/loading: ./js/net/Company.js
INFO: require.js 828:19 ***** require/loading: ./js/net/Call.js
INFO: require.js 828:19 ***** require/loading: ./js/net/PeerConnections.js
INFO: require.js 828:19 ***** require/loading: ./js/net/Participant.js
INFO: require.js 828:19 ***** require/loading: ./js/net/PeerConnection.js
INFO: require.js 828:19 ***** require/loading: ./js/util/WebRtcAdapter.js
INFO: require.js 828:19 ***** require/loading: ./js/util/ConflictingResourceException.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/Preconditions.js
INFO: require.js 828:19 ***** require/loading: ./js/util/RequestScope.js
INFO: require.js 828:19 ***** require/loading: ./js/html/Html.js
INFO: require.js 828:19 ***** require/loading: ./webjars/prefixfree/b44a065/prefixfree.dynamic-dom.js
INFO: require.js 828:19 ***** require/loading: ./js/html/SmartButtons.js
INFO: require.js 828:19 ***** require/loading: ./webjars/sugar/1.4.1/sugar-full.development.js
INFO: require.js 828:19 ***** require/loading: ./webjars/require-css/0.1.7/css.js
INFO: require.js 828:19 ***** require/loading: ./webjars/requirejs-plugins/1.0.2/font.js
INFO: require.js 1659:17 ***** require/defined: _@r7
INFO: require.js 828:19 ***** require/loading: ./webjars/log4javascript/1.4.10/log4javascript.js
INFO: require.js 1659:17 ***** require/defined: _@r8
INFO: require.js 828:19 ***** require/loading: ./webjars/prefixfree/b44a065/prefixfree.js
INFO: require.js 828:19 ***** require/loading: ./js/util/ResourceNotFoundException.js
INFO: require.js 828:19 ***** require/loading: ./js/util/AjaxWithRetry.js
INFO: require.js 828:19 ***** require/loading: ./js/util/Database.js
INFO: require.js 828:19 ***** require/loading: ./js/util/SessionScope.js
INFO: require.js 828:19 ***** require/loading: ./js/net/Authentication.js
INFO: require.js 828:19 ***** require/loading: ./webjars/URI.js/1.12.0/punycode.js
INFO: require.js 828:19 ***** require/loading: ./webjars/URI.js/1.12.0/IPv6.js
INFO: require.js 828:19 ***** require/loading: ./webjars/URI.js/1.12.0/SecondLevelDomains.js
INFO: require.js 828:19 ***** require/loading: ./js/net/AbstractCompany.js
INFO: require.js 828:19 ***** require/loading: ./js/net/Department.js
INFO: require.js 1659:17 ***** require/defined: webjars/q
INFO: require.js 1659:17 ***** require/defined: jquery
INFO: require.js 1659:17 ***** require/defined: _@r9
INFO: require.js 828:19 ***** require/loading: ./webjars/jquery-ui/1.11.1/jquery-ui.js
INFO: require.js 1659:17 ***** require/defined: js/html/Products
INFO: require.js 1659:17 ***** require/defined: _@r10
INFO: require.js 828:19 ***** require/loading: ./webjars/nanoScrollerJS/0.7.6/jquery.nanoscroller.min.js
INFO: require.js 828:19 ***** require/loading: ./js/util/UnauthorizedException.js
INFO: require.js 828:19 ***** require/loading: ./js/util/ReferenceNotFoundException.js
INFO: require.js 828:19 ***** require/loading: ./js/util/ForbiddenException.js
INFO: require.js 828:19 ***** require/loading: ./js/util/PreconditionFailedException.js
INFO: require.js 828:19 ***** require/loading: ./js/util/BadRequestException.js
INFO: require.js 828:19 ***** require/loading: ./js/util/ServiceUnavailableException.js
INFO: require.js 828:19 ***** require/loading: ./webjars/stacktrace/0.6.0/stacktrace.js
INFO: require.js 828:19 ***** require/loading: ./js/util/AssertionException.js
INFO: require.js 828:19 ***** require/loading: ./js/net/ParticipantConnection.js
INFO: require.js 828:19 ***** require/loading: ./js/net/Message.js
INFO: require.js 828:19 ***** require/loading: ./js/util/Queue.js
INFO: require.js 1659:17 ***** require/defined: js/util/Webrtc
INFO: WebRtcAdapter.js 133:11 This appears to be Chrome
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/Utilities.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/ObjectPreconditions.js
INFO: require.js 1659:17 ***** require/defined: requireCss
INFO: require.js 1659:17 ***** require/defined: js/html/SmartButtons
INFO: require.js 828:19 ***** require/loading: ./webjars/requirejs-plugins/1.0.2/propertyParser.js
INFO: require.js 1659:17 ***** require/defined: webjars/log4javascript
INFO: require.js 1659:17 ***** require/defined: webjars/prefixfree
INFO: require.js 1659:17 ***** require/defined: webjars/punycode
INFO: require.js 1659:17 ***** require/defined: webjars/IPv6
INFO: require.js 828:19 ***** require/loading: ./js/net/Operator.js
INFO: require.js 828:19 ***** require/loading: ./js/net/Terminal.js
INFO: require.js 1659:17 ***** require/defined: webjars/SecondLevelDomains
INFO: require.js 1659:17 ***** require/defined: webjars/uri
INFO: require.js 1659:17 ***** require/defined: js/html/Html
INFO: require.js 828:19 ***** require/loading: ./js/net/AbstractDepartment.js
INFO: require.js 1659:17 ***** require/defined: webjars/stacktrace
INFO: require.js 1659:17 ***** require/defined: jquery-ui
INFO: require.js 1659:17 ***** require/defined: js/util/AssertionException
INFO: require.js 1659:17 ***** require/defined: js/util/Queue
INFO: require.js 1659:17 ***** require/defined: js/preconditions/Utilities
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/AbstractObjectPreconditions.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/StringPreconditions.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/UriPreconditions.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/ArrayPreconditions.js
INFO: require.js 1659:17 ***** require/defined: propertyParser
INFO: require.js 1659:17 ***** require/defined: font
INFO: require.js 828:19 ***** require/loading: ./webjars/momentjs/2.7.0/moment.js
INFO: require.js 828:19 ***** require/loading: http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js
INFO: require.js 1659:17 ***** require/defined: js/preconditions/AbstractObjectPreconditions
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/ObjectArrayPreconditions.js
INFO: require.js 1659:17 ***** require/defined: moment
INFO: require.js 1659:17 ***** require/defined: js/preconditions/UriPreconditions
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/StringArrayPreconditions.js
INFO: require.js 828:19 ***** require/loading: ./js/preconditions/UriArrayPreconditions.js
INFO: require.js 1659:17 ***** require/defined: js/preconditions/StringArrayPreconditions
INFO: require.js 1659:17 ***** require/defined: js/preconditions/UriArrayPreconditions
INFO: require.js 1659:17 ***** require/defined: js/preconditions/ObjectArrayPreconditions
INFO: require.js 1659:17 ***** require/defined: js/preconditions/ArrayPreconditions
INFO: require.js 1659:17 ***** require/defined: _@r11
INFO: require.js 1659:17 ***** require/defined: _@r12
INFO: require.js 1659:17 ***** require/defined: js/preconditions/StringPreconditions
INFO: require.js 1659:17 ***** require/defined: js/preconditions/ObjectPreconditions
INFO: require.js 1659:17 ***** require/defined: js/preconditions/Preconditions
INFO: require.js 1659:17 ***** require/defined: js/util/ConflictingResourceException
INFO: require.js 1659:17 ***** require/defined: js/util/RequestScope
INFO: require.js 1659:17 ***** require/defined: js/util/ResourceNotFoundException
INFO: require.js 1659:17 ***** require/defined: js/util/AjaxWithRetry
INFO: require.js 1659:17 ***** require/defined: js/util/Database
INFO: require.js 1659:17 ***** require/defined: js/util/SessionScope
INFO: require.js 1659:17 ***** require/defined: js/util/UnauthorizedException
INFO: require.js 1659:17 ***** require/defined: js/util/ReferenceNotFoundException
INFO: require.js 1659:17 ***** require/defined: js/util/ForbiddenException
INFO: require.js 1659:17 ***** require/defined: js/util/PreconditionFailedException
INFO: require.js 1659:17 ***** require/defined: js/util/BadRequestException
INFO: require.js 1659:17 ***** require/defined: js/util/ServiceUnavailableException
INFO: require.js 1659:17 ***** require/defined: js/util/Utilities
INFO: require.js 1659:17 ***** require/defined: js/net/User
INFO: require.js 1659:17 ***** require/defined: js/net/Participant
INFO: require.js 1659:17 ***** require/defined: js/net/Call
INFO: require.js 1659:17 ***** require/defined: js/net/Authentication
INFO: require.js 1659:17 ***** require/defined: js/html/Authentications
INFO: require.js 1659:17 ***** require/defined: js/net/Message
INFO: require.js 1659:17 ***** require/defined: js/net/ParticipantConnection
INFO: require.js 1659:17 ***** require/defined: js/net/PeerConnection
INFO: require.js 1659:17 ***** require/defined: js/net/PeerConnections
INFO: require.js 1659:17 ***** require/defined: js/net/Operator
INFO: require.js 1659:17 ***** require/defined: js/net/Terminal
INFO: require.js 1659:17 ***** require/defined: js/net/AbstractCompany
INFO: require.js 1659:17 ***** require/defined: js/net/AbstractDepartment
INFO: require.js 1659:17 ***** require/defined: js/net/Department
INFO: require.js 1659:17 ***** require/defined: js/net/Company
INFO: require.js 1659:17 ***** require/defined: font!google,families:[Roboto,Roboto Condensed]
INFO: require.js 1659:17 ***** require/defined: font!google,families:[Roboto,Roboto Condensed]_unnormalized6
INFO: require.js 1659:17 ***** require/defined: font!google,families:[Coda,Roboto]
INFO: require.js 1659:17 ***** require/defined: font!google,families:[Coda,Roboto]_unnormalized4
SEVERE: Utilities.js 37:12 Load timeout for modules: requireCss!css/video_unnormalized2,requireCss!webjars/jquery-ui/css_unnormalized3,requireCss!css/steps/foo_unnormalized5,requireCss!css/video,requireCss!webjars/jquery-ui/css,requireCss!css/steps/foo
http://requirejs.org/docs/errors.html#timeout
[email protected]:166:17
[email protected]:692:23
(?)()@require.js:713:25
SEVERE: require.js 166:17 Uncaught Error: Load timeout for modules: requireCss!css/video_unnormalized2,requireCss!webjars/jquery-ui/css_unnormalized3,requireCss!css/steps/foo_unnormalized5,requireCss!css/video,requireCss!webjars/jquery-ui/css,requireCss!css/steps/foo
http://requirejs.org/docs/errors.html#timeout

This is on top of the extra logs I had in require-css, but as you can see the latter logs were never triggered. What test should I try next to narrow this down?

@guybedford
Copy link
Owner

I'm not sure RequireJS will be calling that for plugins?

I was just referring to logging the name / URI in the load hook of the CSS plugin itself to see if the load hook is triggering properly, then follow the chain down from the load function call to the CSS injection to see where it's failing. It would basically be one of:

  • Is the load hook calling at all?
  • Once called, which type of injection is it doing?
  • Is the stylesheet being injected into the page?

etc?

@F1LT3R
Copy link

F1LT3R commented Mar 21, 2017

@cowwoc do you happen to know what the [email protected], [email protected] requests are for? I'm seeing these on a project and I've not seen them before.

@cowwoc
Copy link
Author

cowwoc commented Mar 21, 2017

@F1LT3R Sorry no. I have moved on from require.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants