Test | JS | JS Gzip | CSS | CSS Gzip | Precompilado |
---|---|---|---|---|---|
Situación inicial | 20.624 | 7.248 | 3.064 | 720 | 287,63s |
Sin compresión | 20.920 | 7.656 | 4.824 | 816 | 21,59s |
Optimización y ckeditor desde cdn | 3.872 | 1.248 | 1.640 | 368 | 156,32s |
Reemplazar sass con libsass | 3.872 | 1.248 | 1.640 | 368 | 137,66s |
Reemplazar uglifier con uglifyjs de node | 3.872 | 1.248 | 1.640 | 368 | 19,63s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="switcher"> | |
<input type="checkbox", name="wadus" id="wadus"> | |
<label for="wadus" class="switch"></label> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2018-03-20T08:38:38.203Z","extensionVersion":"v2.9.0"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin ie() { | |
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { | |
@content; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2017-07-02T20:35:17.760Z","extensionVersion":"v2.8.2"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helpers do | |
def inline_svg name | |
root = Middleman::Application.root | |
file_path = "#{root}/source/assets/images/svg/#{name}.svg" | |
if File.exists?(file_path) | |
File.read(file_path) | |
else | |
"<span class='icon-error'>Icon #{name} not found</span>" | |
end | |
end |
Test | JS Kb | JS Gzip | CSS Kb | CSS Gzip | Precompilado |
---|---|---|---|---|---|
Situación inicial | 20.624 | 7.248 | 3.064 | 720 | 287,63s |
Sin compresión | 20.920 | 7.656 | 4.824 | 816 | 21,59s |
Optimización y ckeditor desde cdn | 3.872 | 1.248 | 1.640 | 368 | 156,32s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open3' | |
class NodeUglify | |
def compress(input) | |
output = '' | |
Open3.popen3('uglifyjs') do |i, o, t| | |
i.puts input | |
i.close | |
while line = o.gets | |
output += line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": true, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": false, | |
"sort-order-fallback": "abc", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = "/fullpath/your_project/current" | |
working_directory root | |
pid "#{root}/tmp/pids/unicorn.pid" | |
stderr_path "#{root}/log/unicorn.error.log" | |
stdout_path "#{root}/log/unicorn.log" | |
listen 8080 | |
worker_processes 2 | |
timeout 30 |
NewerOlder