Bug 121270 - Web Inspector: InspectorOverlayPage_html should have minified css and js
Summary: Web Inspector: InspectorOverlayPage_html should have minified css and js
Status: RESOLVED DUPLICATE of bug 121183
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-09-12 18:21 PDT by Joseph Pecoraro
Modified: 2013-09-13 13:05 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2013-09-12 18:21:33 PDT
As rniwa discovered in bug 121183 these serialized files can be rather large if not compressed before being packed into the WebCore binary. We should minify the css / js in this simple HTML file.

    shell> symbols Release/WebCore.framework/WebCore | sed -E 's/^ *0x[0-9a-f]+ *\(( *)0x([^)]+)\)/\1\2/' | sort -r | head -n 30
    ...
    4880 InspectorOverlayPage_html [NameNList, MangledNameNList, NList] 
    …

This is 18.3kb. Minifying the JS and CSS we can do better.
Comment 1 Radar WebKit Bug Importer 2013-09-12 18:21:50 PDT
<rdar://problem/14981831>
Comment 2 Joseph Pecoraro 2013-09-12 18:36:22 PDT
before: 18.13k
  4880 InspectorOverlayPage_html [NameNList, MangledNameNList, NList] 
after: 13.97k
  37e0 InspectorOverlayPage_html [NameNList, MangledNameNList, NList] 

And just the generated size on disk:
   84K   InspectorOverlayPage-after.h
  109K   InspectorOverlayPage-before.h
Comment 3 Joseph Pecoraro 2013-09-13 13:05:14 PDT
Due to the prior failure. I just rolled this into bug 121183.

*** This bug has been marked as a duplicate of bug 121183 ***