- Passing an object as reference
var functionName = function() {}
vsfunction functionName() {}
- event.target vs event.currentTarget
- event.stopPropagation vs event.preventDefault
- bind vs call vs apply
- [JavaScript’s Apply, Call, and Bind Methods are Essential for JavaScript Professionals](http://javascriptissexy.com/javascript-apply-call-and-bind-methods-are-essential-for-javascript-prof
- Wei Lu: HTTP Headers - The Simplest Security - JSConf.Asia 2014
- Content-Security-Policy
- X-XSS-Protection
- Strict-Transport-Security
- X-Frame-Options
Some tips or useful info that i found interesting or useful at the moment of writing.
USE IT EVERYWHERE. THE END.
This file contains 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
<?php | |
ini_set("max_execution_time", "30000"); | |
// how much detail we want. Larger number means less detail | |
// (basically, how many bytes/frames to skip processing) | |
// the lower the number means longer processing time | |
define("DETAIL", 5); | |
define("DEFAULT_WIDTH", 500); |
- If parent has overflow hidden and child has
backface-visibility: hidden;
then fonts on chrome <= 37 render blurry due to the are converted to and image upscaled.
- What is the difference between perspective and transforms perspective property
- [Youtube - Bram Stein: The State of Web Typography] (https://www.youtube.com/watch?v=VbCqFQ1sTYQ&list=WL&index=2) - great speech about fonts, their browser supports
This file contains 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 for easy focus color removement | |
@mixin remove-focus-color { | |
outline: none; | |
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */ | |
} |
This file contains 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
// sass svg fallback to png (or your desired extension) | |
// similar to other fallbacks but this supports < 4 firefox | |
@mixin png-svg-fallback($url, $extension: '.png') { | |
background-image: url($url + $extension); | |
background-image: -webkit-linear-gradient(transparent, transparent), url($url + ".svg"); | |
background-image: linear-gradient(transparent, transparent), url($url + ".svg"); | |
} |
NewerOlder