Skip to content

Packaging improvement#331

Merged
Pita merged 4 commits intoether:masterfrom
cweider:packaging-improvement
Jan 15, 2012
Merged

Packaging improvement#331
Pita merged 4 commits intoether:masterfrom
cweider:packaging-improvement

Conversation

@cweider
Copy link
Copy Markdown
Contributor

@cweider cweider commented Jan 15, 2012

Tweaks the process of embedding styles and scripts into ace.js. It’s slightly cleaner, but the important bit is that files are included at most once. This eliminates duplication and drops the size of pad.js from 149.27kB (553.98kB) to 109.47kB (341.96kB). This patch also changes how tags are written to the page so that only one style and one script tag are created (my intuition is that this will help IE).

@Pita
Copy link
Copy Markdown
Contributor

Pita commented Jan 15, 2012

I tested this today. Problem is that minfied:false doesn't work anymore. Without this its nearly impossible to debug the client side code. Can you please try to fix that

@Pita
Copy link
Copy Markdown
Contributor

Pita commented Jan 15, 2012

Another side effect of this pull request is that line numbers are not showed anymore

Instead of replacing substrings, write each included file's content into a shared dictionary for lookup later. This eliminates duplication and arguably improves readability.
@cweider
Copy link
Copy Markdown
Contributor Author

cweider commented Jan 15, 2012

Oh, that’s right… fixed.

@JohnMcLear
Copy link
Copy Markdown
Member

Great work thanks :)

@Pita
Copy link
Copy Markdown
Contributor

Pita commented Jan 15, 2012

Awesome work. Thx a lot

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

Successfully merging this pull request may close these issues.

3 participants