Why minification will always help compression:
Take:
function (apples) {
var all_my_apples = ["another apple"];
for (var i = 0; i < apples.length; i++) {
all_my_apples.push(apples[i]);
}
return all_my_apples;
<link rel="import" href="../paper-calculator/paper-calculator.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-icon-button/paper-icon-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
{ | |
"modules": [], | |
"elements": [ | |
{ | |
"properties": [ | |
{ | |
"name": "created", | |
"type": "Function" | |
}, | |
{ |
{ | |
"modules": [], | |
"elements": [ | |
{ | |
"properties": [ | |
{ | |
"name": "configure", | |
"type": "Function" | |
}, | |
{ |
Why minification will always help compression:
Take:
function (apples) {
var all_my_apples = ["another apple"];
for (var i = 0; i < apples.length; i++) {
all_my_apples.push(apples[i]);
}
return all_my_apples;
from django.utils.safestring import mark_safe | |
def oneWayBind(expression): | |
return mark_safe("[[" + expression + "]]") | |
def twoWayBind(expression): | |
return mark_safe("{{" + expression + "}}") |
function emailTest(name, address) { | |
test(name, function() { | |
var input = fixture('basic'); | |
forceXIfStamp(input); | |
var container = Polymer.dom(input.root).querySelector('paper-input-container'); | |
assert.ok(container, 'paper-input-container exists'); | |
input.value = address; | |
assert.isFalse(container.invalid); |
<link rel="import" href="../polymer/polymer.html"> | |
<dom-module id="el-one"> | |
<template>Foo</template> | |
</dom-module> |
/** | |
* Resolves a package. | |
* @param {string} pkg A bower-like repository description, github repo, or other git url | |
* @return {Array.<{{folder:string, repository:}}>} A list of packages and URLs to add to the workspace. | |
*/ | |
resolve: function(pkg) { | |
// Install the package to a tempdir, return a | |
}, |
Repository must be specified for gold-elements | |
Repository must be specified for hydrolysis | |
Repository must be specified for iron-a11y-announcer | |
Repository must be specified for iron-a11y-keys | |
Repository must be specified for iron-a11y-keys-behavior | |
Repository must be specified for iron-behaviors | |
Repository must be specified for iron-component-page | |
Repository must be specified for iron-doc-viewer | |
Repository must be specified for iron-elements | |
Repository must be specified for iron-flex-layout |