Ticket #2531255 (closed defect)

Reporter


einarq
Opened: 09/29/11
Last modified: 11/30/11
Status: closed
Type: defect
Resolution: invalid

Owner


Dav Glass
Target Release: 3.5.0
Priority: P3 (normal)
Summary: Custom loader configuration fails
Description:

Trying to create my own loader configuration since I am not planning on using the intl module. I could be doing something wrong, but I can't see what it is.
Even though my custom configuration includes loader, loader is still downloaded again after the main combo file, and then I get a javascript error about missing "Features.test".

Type: defect Observed in Version: 3.4.1
Component: Loader Severity: S3 (normal)
Assigned To: Dav Glass Target Release: 3.5.0
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

- Run Fiddler, or some other http watcher
- Open the attachment in any browser
- loader.js is downloaded again even though it is included in the combo url
- A javascript error about Features.test is thrown

Attachments

Attachment #1: test.htm (download)

Change History

Dav Glass

Posted: 09/29/11
  • location changed to Library Code
  • milestone changed to 3.5.0
  • priority changed to P3 (normal)
  • status changed from new to accepted

einarq

Posted: 10/3/11

Hmm, I tried to add another attachment but it seems it replaced the previous one instead. Let me know if you want me to try to recreate the previous attachment if you are not able to retrieve it from somewhere.

einarq

Posted: 10/6/11

Here is another example. This is my ideal YUI config, without a lot of the extra stuff I don't want to use.
http://jsfiddle.net/XBCZa/

The use statements never finishes.

If I change it to this, it works fine:
http://jsfiddle.net/zwCtg/

The difference being that in the second example I use yui-min instead of yui-base, yui-later, features, and get, AND that I use loader-min.js instead loader-base-min.js and loader-yui3-min.js.

I don't need loader-rollup (allowRollup is set to false), and I don't need intl-base, rls, yui-log, and yui-throttle.

Dav Glass

Posted: 11/8/11
  • estimated changed from 0 to 0.5
  • remaining changed from 0 to 0.5
  • sprint changed to sprint 1

Dav Glass

Posted: 11/30/11
  • remaining changed from 0.5 to 0
  • resolution changed to invalid
  • status changed from accepted to closed

This is working as expected with 3.4.1:

http://jsfiddle.net/davglass/aMxQG/