<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| 'use strict'; | |
| const webpack1Stats = require('./webpack1-stats.json'); | |
| const webpack2Stats = require('./webpack2-stats.json'); | |
| const modules = new Set(); | |
| webpack1Stats.modules.forEach((wModule) => { | |
| modules.add(wModule.name); | |
| }); |
| 'use strict'; | |
| const shrinkwrap = require('./npm-shrinkwrap.json'); | |
| const modules = {}; | |
| const duplicatedModules = {}; | |
| walk(shrinkwrap, (key, body) => { | |
| if (!modules[key]) { | |
| modules[key] = [body.version]; | |
| return; |
Preload/prefetch JS files techniques to avoid waterfall when you split the main bundle in chunks (async routes).
| Approach | JS executed | Loaded as | Support |
|---|---|---|---|
| link rel preload as script | false | JS File | - |
| link rel prefetch | false | File | + |
| blockquote.twitter-tweet { | |
| overflow: hidden; | |
| color: #1c2022; | |
| background-color: #fff; | |
| border: 1px solid #e1e8ed; | |
| border-radius: 4px; | |
| width: 500px; | |
| max-width: 100%; | |
| min-width: 220px; | |
| padding: 1.25rem 1.25rem 0.725rem 1.25rem; |
| { | |
| "extends": "airbnb", | |
| "rules": { | |
| "comma-dangle": 0 | |
| } | |
| } |
| <script type="text/javascript"> | |
| (function () { | |
| "use strict"; | |
| // once cached, the css file is stored on the client forever unless | |
| // the URL below is changed. Any change will invalidate the cache | |
| var css_href = './index_files/web-fonts.css'; | |
| // a simple event handler wrapper | |
| function on(el, ev, callback) { | |
| if (el.addEventListener) { | |
| el.addEventListener(ev, callback, false); |
| /* | |
| * Inscribidor automΓ‘tico a materias del SIU GuaranΓ | |
| */ | |
| /* | |
| * En la pΓ‘gina de la materia a la que queres inscribirte abrΓ la consola del | |
| * navegador y pega el siguiente cΓ³digo. Acordarte de cambiar el cΓ³digo de | |
| * comisiΓ³n por el deseado en la primera variable. | |
| */ |
| <?php | |
| /** | |
| * Logitud de the_excerpt() a 25 palabras | |
| */ | |
| function ramasilveyra_custom_excerpt_length( $length ) { | |
| return 25; | |
| } | |
| add_filter( 'excerpt_length', 'ramasilveyra_custom_excerpt_length', 999 ); | |
| /** |
| /* | |
| * By Osvaldas Valutis, www.osvaldas.info | |
| * Available for use under the MIT License | |
| * | |
| * With minor syntax improvements to approve JsLint. (Ramiro Silveyra d'Avila - https://ramasilveyra.com.ar/) | |
| */ | |
| (function ($, window, document) { | |
| 'use strict'; | |
| $.fn.doubleTapToGo = function () { | |
| if (typeof (window.ontouchstart) === 'undefined' && !navigator.msMaxTouchPoints && !navigator.userAgent.toLowerCase().match(/windows phone os 7/i)) { |