Closed
Bug 1363803
Opened 7 years ago
Closed 7 years ago
Consolidate YUI js and css into one js and one css file
Categories
(bugzilla.mozilla.org :: General, enhancement)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dylan, Assigned: dylan)
References
Details
Attachments
(1 file, 2 obsolete files)
74.53 KB,
patch
|
glob
:
review+
|
Details | Diff | Splinter Review |
This reduces the possible variation in CSS and javascript files by a large degree, which simplifies further work on doing content-based asset and asset concatenation.
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8866412 -
Flags: review?(glob)
Assignee | ||
Comment 2•7 years ago
|
||
Update: handle yui3 as well. yui3 is smart enough to detect if js (or css) are already loaded, and if so it doesn't load them dynamically. This means MyDashboard loads with 73 fewer HTTP requests. This won't matter much for HTTP2, but it makes the HTTP/1.1 experience better on the balance.
Attachment #8866412 -
Attachment is obsolete: true
Attachment #8866412 -
Flags: review?(glob)
Attachment #8866528 -
Flags: review?(glob)
Assignee | ||
Comment 3•7 years ago
|
||
Have to delay loading the YUI3 constructor due to a bug in YUI3.
Attachment #8866528 -
Attachment is obsolete: true
Attachment #8866528 -
Flags: review?(glob)
Attachment #8866577 -
Flags: review?(glob)
Comment on attachment 8866577 [details] [diff] [review] 1363803_3.patch Review of attachment 8866577 [details] [diff] [review]: ----------------------------------------------------------------- r=glob lgtm ::: Bugzilla/Install/Filesystem.pm @@ +582,5 @@ > + File::Spec->rel2abs( $url, $from_dir ) > + ), > + $to_dir > + ); > + return sprintf "url(%s)", $new_url; for consistency use 'url(' . $new_url . ')' here, or sprintf at line 577 @@ +692,5 @@ > print "Creating $file...\n"; > my $fh = IO::File->new( $file, O_WRONLY | O_CREAT, $info->{perms} ) > or die "unable to write $file: $!"; > + my $contents = $info->{contents}; > + if (ref $contents && ref($contents) eq 'CODE') { ref() always returns a string; you don't need the first `ref $contents` check @@ +697,5 @@ > + print $fh $contents->(); > + } > + else { > + print $fh $contents; > + } writing $info->{contents} to $fh should only happen if $info->{contents} exists
Attachment #8866577 -
Flags: review?(glob) → review+
Assignee | ||
Comment 5•7 years ago
|
||
To git@github.com:mozilla-bteam/bmo.git 38b13ae..3a372a9 master -> master
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•