Search completed in 0.87 seconds.
87 results for "defer":
Your results are loading. Please wait...
Deferred
a deferred object is returned by the obsolete promise.defer() method to provide a new promise along with methods to change its state.
... a deferred object is returned by the obsolete promise.defer() method to provide a new promise along with methods to change its state.
... a deferred object is returned by the obsolete promise.defer() method to provide a new promise along with methods to change its state.
...And 19 more matches
DeferredTask.jsm
firefox 28 note interface was changed in firefox 28, and old methods were removed.
...irefox 28 note interface was changed in firefox 28, and old methods were removed.
...tines for a task that will run after a delay.
...And 13 more matches
Deferred
a deferred object is returned by the promiseutils.defer() method to provide a new promise along with methods to change its state.
Examples
re/modules/devtools/server/transport.js:279:11 makeinfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/devtoolsutils.js:84:7 */ intermediate of user defined promise function 1 components.utils.import("resource://gre/modules/promise.jsm"); // this function creates and returns a new promise.
.../server/transport.js:279:11 makeinfallible/<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/devtoolsutils.js:84:7 */ intermediate of user defined promise function 1 components.utils.import("resource://gre/modules/promise.jsm"); // this function creates and returns a new promise.
...omponents.utils.import("resource://gre/modules/promise.jsm"); // this function creates and returns a new promise.
...And 18 more matches
core/promise - Archive of obsolete content
n result; }, function (reason) { // rejection handler called because `failasync` promise // was rejected with its reason propagated return reason; }); making promises everything above assumes you get a promise from somewhere else.
...(reason) { // rejection handler called because `failasync` promise // was rejected with its reason propagated return reason; }); making promises everything above assumes you get a promise from somewhere else.
... above assumes you get a promise from somewhere else.
...And 17 more matches
What is JavaScript? - Learn web development
ernal javascript this works great, but what if we wanted to put our javascript in an external file?
... is an event listener, which listens for the browser's "domcontentloaded" event, which signifies that the html body is completely loaded and parsed.
...vascript inside this block will not run until after that event is fired, therefore the error is avoided (you'll learn about events later in the course).
...And 12 more matches
<script>: The Script element - HTML: Hypertext Markup Language
Web › HTML › Element › script
om interface htmlscriptelement attributes this element includes the global attributes.
...lable.
...lity for notes on browser support.
...And 6 more matches
Add to Home screen - Progressive web apps (PWAs)
atically on desktop apps, and the installation needs to be triggered by a user gesture: <button class="add-button">add to home screen</button> we then gave it some simple styling: .add-button { position: absolute; top: 1px; left: 1px; } javascript for handling the install at the bottom of our index.js file, we added some javascript to handle the installation.
...ton> we then gave it some simple styling: .add-button { position: absolute; top: 1px; left: 1px; } javascript for handling the install at the bottom of our index.js file, we added some javascript to handle the installation.
...install until it follows the a2hs criteria.
...And 6 more matches
PromiseUtils.jsm
the promiseutils.jsm javascript code module offers some useful functions related to dom promise.
... the promiseutils.jsm javascript code module offers some useful functions related to dom promise.
... the promiseutils.jsm javascript code module offers some useful functions related to dom promise.
...And 5 more matches
HTMLScriptElement - Web APIs
c is a domstring representing the url of an external script.
...enting the url of an external script.
...nt is a domstring; an obsolete way of registering event handlers on elements in an html document.
...And 5 more matches
lang/functional - Archive of obsolete content
times: method(times), add: method(add), number: 0 }; function times (target, x) { return target.number *= x; } function add (target, x) { return target.number += x; } console.log(mynumber.number); // 0 mynumber.add(10); // 10 mynumber.times(2); // 20 mynumber.add(3); // 23 parameters lambda : function the function to be wrapped and returned.
...unction and returns a wrapped version of the function.
...on.
...And 4 more matches
Promise.jsm
the promise.jsm javascript code module implements the promises/a+ proposal as known in april 2013.
... in turn, is fulfilled or rejected depending on the state of the original promise and on the behavior of the callbacks.
... is fulfilled or rejected depending on the state of the original promise and on the behavior of the callbacks.
...And 4 more matches
MMgc - Archive of obsolete content
declared write barrier.
...e dwb dwb(avmplus::hashtable*) mytable; }; drc drc stands for deferred reference counted.
...undreds of megabytes of ram real quick.
...And 3 more matches
nsITraceableChannel
/binaryoutputstream;1', 'nsibinaryoutputstream', 'setoutputstream'); var storagestream = cc('@mozilla.org/storagestream;1', 'nsistoragestream', 'init'); function tracinglistener() { this.receivedchunks = []; // array for incoming data.
...ragestream = cc('@mozilla.org/storagestream;1', 'nsistoragestream', 'init'); function tracinglistener() { this.receivedchunks = []; // array for incoming data.
...s = []; // array for incoming data.
...And 2 more matches
Tracing JIT
e function elsewhere in spidermonkey -- some helper function written in c -- and that native happens to re-enter the interpreter to interpret yet more bytecode, and furthermore if that bytecode itself contains a hot pc that has not yet been traced, the trace monitor may be asked to begin nested recording.
...he interpreter to interpret yet more bytecode, and furthermore if that bytecode itself contains a hot pc that has not yet been traced, the trace monitor may be asked to begin nested recording.
... the side exit and, depending on the exit condition, reconstructs a certain number of interpreter frames and flushes a certain set of writes back to the spidermonkey heap.
...terpreter handles all outcomes of such a condition dynamically.
mozIStorageConnection
version of the database.
... acallback optional an optional callback handler to be executed when the connection is successfully closed.
...at object's mozistoragecompletioncallback.complete() routine will be called once the connection is closed.
...method will manage the transactions for you, so you don't have to worry about them.
Sqlite.jsm
tained within it are committed as one unit.
...on started.
... mytable values (:parama, :paramb)", data); } }); transactions these examples demonstrate how transactions work.
nsIFileOutputStream
k/base/public/nsifilestreams.idlscriptable this interface is an output stream that lets you stream to a file.
...m that lets you stream to a file.
...lags, in long perm, in long behaviorflags); constants behavior flag constants constant value description defer_open 1<<0 see the same constant in nsifileinputstream.
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
onsole.log('after settimeout'); will write to the console: after settimeout foo has been called this is because even though settimeout was called with a delay of zero, it's placed on a queue and scheduled to run at the next opportunity; not immediately.
...ut foo has been called this is because even though settimeout was called with a delay of zero, it's placed on a queue and scheduled to run at the next opportunity; not immediately.
...o, it's placed on a queue and scheduled to run at the next opportunity; not immediately.
Populating the page: how browsers work - Web Performance
es between different tags.
...et" src="styles.css"/> <script src="myscript.js" async></script> <img src="myimage.jpg" alt="image description"/> <script src="anotherscript.js" async></script> in this example, while the main thread is parsing the html and css, the preload scanner will find the scripts and image, and start downloading them as well.
...ted would be repainted, and composited if necessary.
Progressive loading - Progressive web apps (PWAs)
as soon as possible — the longer they wait for the page to load, the bigger the chance they will leave before waiting for everything to finish.
...crucial and then manage other resources when needed.
...ed.
Performance best practices in extensions - Archive of obsolete content
ll at once.
... while javascript modules can be extremely useful, and provide significant performance benefits, they should be used wisely.
Promises - Archive of obsolete content
ue the changes to be written to disk.
... this.data = json.parse( yield os.file.read(this.path, { encoding: "utf-8" })); } catch (e if e.becausenosuchfile) { this.data = json.parse(json.stringify(default_)); } // create a saver to write our json-stringified data to our // path, at 1000ms minimum intervals.
Tips for authoring fast-loading HTML pages - Learn web development
be based on the consideration of modern browsers that support the relevant standards.
...cent versions of firefox, internet explorer, google chrome, opera, and safari.
What’s in the head? Metadata in HTML - Learn web development
ays go inside the head of your document.
... that the html is all loaded before the javascript runs, so that you don't get errors resulting from javascript trying to access an html element that doesn't exist on the page yet.
Client-side storage - Learn web development
following to the bottom of your code: document.body.onload = namedisplaycheck; your example is finished — well done!
...ad = namedisplaycheck; your example is finished — well done!
HTML parser threading
g to the event loop.
...if a script execution tree op is generated.
FileUtils.jsm
t is created, along with any parent directories that need to be created.
....0, passing mode_append without mode_truncate will throw an exception.
nsIFileInputStream
when it is closed again.
... occurs, it will happen naturally.
Storage
out them.
...nection.begintransactionas().
Index - Web APIs
Web › API › Index
property, reference, service workers, serviceworker the notification read-only property of the notificationevent interface returns the instance of the notification that was clicked to fire the event.
... webgl_depth_texture api, reference, webgl, webgl extension the webgl_depth_texture extension is part of the webgl api and defines 2d depth and depth-stencil textures.
At-rules - CSS: Cascading Style Sheets
Web › CSS › At-rule
t will apply its content if the device meets the criteria of the condition defined using a media query.
...ements—either rulesets or nested at-rules.
HTML5 Parser - Developer guides
Web › Guide › HTML › HTML5 › HTML5 Parser
acy, as the content was inserted into a timing-dependent point in the source stream.
... is created by a <script> tag that does not have the async or defer attributes set.
<img>: The Image Embed element - HTML: Hypertext Markup Language
Web › HTML › Element › img
his attribute is allowed only if the <img> element is a descendant of an <a> element with a valid href attribute.
...viewport (this is the default value).
Preloading content with rel="preload" - HTML: Hypertext Markup Language
a simple example might look like this (see our js and css example source, and also live): <head> <meta charset="utf-8"> <title>js and css preload example</title> <link rel="preload" href="style.css" as="style"> <link rel="preload" href="main.js" as="script"> <link rel="stylesheet" href="style.css"> </head> <body> <h1>bouncing balls</h1> <canvas></canvas> <script src="main.js" defer></script> </body> here we preload our css and javascript files so they will be available as soon as they are required for the rendering of the page later on.
...preload"; preloadlink.as = "script"; document.head.appendchild(preloadlink); this means that the browser will preload the myscript.js file, but not actually use it yet.
JavaScript modules - JavaScript
try to load the html file locally (i.e.
...rrors due to javascript module security requirements.
await - JavaScript
fulfillment.
... that of the fulfilled promise.
Critical rendering path - Web Performance
e more specific rule is more expensive because it has to traverse more nodes in the dom tree - but that extra expense is generally minimal.
...e biggest bang for your optimization buck.
Lazy loading - Web Performance
enables sending the minimal code required to provide value upfront, improving page-load times.
...t link images and iframes very often, webpages contain many images that contribute to data-usage and how fast a page can load.
Appendix D: Loading Scripts - Archive of obsolete content
s are loaded from a cache, only read and compile time are reduced.
Session store API - Archive of obsolete content
lace the contents of the function myextensionhandlerestore() with whatever you need to do when the tab is restored.
CSS3 - Archive of obsolete content
lue to the definition of <color>, <image>, and <position>.
JavaScript Client API - Archive of obsolete content
lection, id); } foorecord.prototype = { __proto__: cryptowrapper.prototype, _logname: "record.foo", ttl: foo_ttl, // optional get bar() this.cleartext.bar, set bar(value) { this.cleartext.bar = value; }, get baz() this.cleartext.baz, set baz(value) { this.cleartext.baz = value; } }; to save all that typing for declaring the getters and setters, you can also use utils.defergetset: function foorecord(collection, id) { cryptowrapper.call(this, collection, id); } foorecord.prototype = { __proto__: cryptowrapper.prototype, _logname: "record.foo", ttl: foo_ttl // optional }; utils.defergetset(foorec, "cleartext", ["bar", "baz"]); the store object the store object (which extends store, as defined in services/sync/modules/engines.js) has the job of creating an...
jspage - Archive of obsolete content
(o,r); }q.push(o);}o=o[l];}return(p)?new elements(q,{ddup:false,cash:!r}):null;};var e={html:"innerhtml","class":"classname","for":"htmlfor",defaultvalue:"defaultvalue",text:(browser.engine.trident||(browser.engine.webkit&&browser.engine.version<420))?"innertext":"textcontent"}; var b=["compact","nowrap","ismap","declare","noshade","checked","disabled","readonly","multiple","selected","noresize","defer"];var k=["value","type","defaultvalue","accesskey","cellpadding","cellspacing","colspan","frameborder","maxlength","readonly","rowspan","tabindex","usemap"]; b=b.associate(b);hash.extend(e,b);hash.extend(e,k.associate(k.map(string.tolowercase)));var a={before:function(m,l){if(l.parentnode){l.parentnode.insertbefore(m,l); }},after:function(m,l){if(!l.parentnode){return;}var n=l.nextsibling;(n)?l.p...
getLastError - Archive of obsolete content
getlasterror returns the most recent nonzero error code.
Parse - MDN Web Docs Glossary: Definitions of Web-related terms
the document is well-formed, parsing it is straightforward and faster.
Perceived performance - MDN Web Docs Glossary: Definitions of Web-related terms
uest is made, through the downloading, parsing and execution of all resources, and the final paint.
Index - Learn web development
this looks in web browsers and javascript.
Graceful asynchronous programming with Promises - Learn web development
previous overview: asynchronous next promises are a comparatively new feature of the javascript language that allow you to defer further actions until after a previous action has completed, or respond to its failure.
Asynchronous JavaScript - Learn web development
ok at the traditional methods javascript has available for running code asychronously after a set time period has elapsed, or at a regular interval (e.g.
HTML performance features - Learn web development
nt-side web technologies.
Web performance resources - Learn web development
ext (fout.) the simplist way to address this is by inlining css that is required for any content that is rendered above the fold, or what you see in the browser viewport before scrolling.
Multimedia: video - Learn web development
and compression.
Deployment and next steps - Learn web development
erences to the javascript and css files in our public/index.html file relative.
Getting started with Svelte - Learn web development
lic/index.html includes the generated bundle.css and bundle.js files: <!doctype html> <html lang="en"> <head> <meta charset='utf-8'> <meta name='viewport' content='width=device-width,initial-scale=1'> <title>svelte app</title> <link rel='icon' type='image/png' href='/favicon.png'> <link rel='stylesheet' href='/global.css'> <link rel='stylesheet' href='/build/bundle.css'> <script defer src='/build/bundle.js'></script> </head> <body> </body> </html> the minified version of bundle.js weighs a little more than 3kb, which includes the "svelte runtime" (just 300 lines of javascript code) and the app.svelte compiled component.
Gecko Logging
a minimal c++ logging framework is provided for use in core gecko code.
mach
nformation command modules are not imported into a reliable python package/module "namespace." therefore, you can't rely on the module name.
Addon
rm version.
XPCOMUtils.jsm
ace); generator iterstringenumerator(enumerator); attributes attribute type description categorymanager nsicategorymanager returns a reference to nsicategorymanager.
JavaScript code modules
okmarkhtmlutils.jsm provides utility functions for importing and exporting bookmarks from the old-school "bookmarks.html" style bookmark files.
nsIClipboard
and notifies the clipboard owner.
nsIExternalProtocolService
or a specific protocol is "exposed" as a visible feature of the current application.
nsIMsgIncomingServer
te.
nsISessionStartup
ce, which was suffering due to the need to parse and stringify the data.
nsIXPConnect
cacheptr acache, in nsiidptr aiid, in boolean aallowwrapper, out jsval aval, out nsixpconnectjsobjectholder aholder); attributes attribute type description collectgarbageonmainthreadonly prbool obsolete since gecko 1.9 currentjsstack nsistackframe read only.
Address book sync client design
a ui ab sync logic mork ab database sync protocol encoding sync protocol decoding http "post" api mozilla networking client side sync logic the client synchronization logic defers to the server peforming some intelligence in handling duplicate entries for the sync process.
Document.write() - Web APIs
Web › API › Document › write
: document.write() and document.writeln do not work in xhtml documents (you'll get an "operation is not supported" [ns_error_dom_not_supported_err] error in the error console).
HTMLImageElement.loading - Web APIs
ccurring, you should explicitly specify the size of the image's presentation using the image element's width and height attributes.
Using microtasks in JavaScript with queueMicrotask() - Web APIs
op driving a web worker.
NotificationEvent.notification - Web APIs
the notification read-only property of the notificationevent interface returns the instance of the notification that was clicked to fire the event.
WEBGL_draw_buffers - Web APIs
the webgl_draw_buffers extension is part of the webgl api and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.
WebGL best practices - Web APIs
ronous.
Using Web Workers - Web APIs
.js', 'bar.js'); /* imports two scripts */ importscripts('//example.com/hello.js'); /* you can import scripts from other origins */ the browser loads each listed script and executes it.
Window.open() - Web APIs
Web › API › Window › open
oosing new window from the file menu.
attr() - CSS: Cascading Style Sheets
Web › CSS › attr
kground[data-background] { background-color: attr(data-background color, red); } specifications specification status comment css values and units module level 4the definition of 'attr()' in that specification.
element() - CSS: Cascading Style Sheets
Web › CSS › element
:400px; height:100px; background:-moz-element(#mybackground2);"> </div> <div style="overflow:hidden; height:0;"> <button id="mybackground2" type="button">evil button!</button> </div> specifications specification status comment css images module level 4the definition of 'using elements as images: the element() notation' in that specification.
HTML attribute reference - HTML: Hypertext Markup Language
lobal attribute lets you attach custom attributes to an html element.
<iframe>: The Inline Frame element - HTML: Hypertext Markup Language
Web › HTML › Element › iframe
cide the priority of the resource.
getter - JavaScript
is.a + 1; } }); console.log(o.b) // runs the getter, which yields a + 1 (which is 1) using a computed property name const expr = 'foo'; const obj = { get [expr]() { return 'bar'; } }; console.log(obj.foo); // "bar" smart / self-overwriting / lazy getters getters give you a way to define a property of an object, but they do not calculate the property's value until it is accessed.
Promise - JavaScript
lfilled or rejected when a corresponding handler is attached, the handler will be called, so there is no race condition between an asynchronous operation completing and its handlers being attached.
Performance fundamentals - Web Performance
rame.
Navigation and resource timings - Web Performance
ding a dns lookup, tcp handshake, and ssl negotiation, before the user agent makes the actual request and the servers return the requested assets.
Optimizing startup performance - Web Performance
l out the "pure calculation" chunks of your startup process into workers, you'll wind up having to run most or all of your startup code on the main thread.
Web Performance
t of javascript you use in your applications, it can be difficult to know where to start.
Progressive web app structure - Progressive web apps (PWAs)
gressive web apps."> <meta name="author" content="end3r"> <meta name="theme-color" content="#b12a34"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta property="og:image" content="icons/icon-512.png"> <link rel="shortcut icon" href="favicon.ico"> <link rel="stylesheet" href="style.css"> <link rel="manifest" href="js13kpwa.webmanifest"> <script src="data/games.js" defer></script> <script src="app.js" defer></script> </head> <body> <header> <p><a class="logo" href="http://js13kgames.com"><img src="img/js13kgames.png" alt="js13kgames"></a></p> </header> <main> <h1>js13kgames a-frame entries</h1> <p class="description">list of games submitted to the <a href="http://js13kgames.com/aframe">a-frame category</a> in the <a href="http://2017.js13kgames.com">js13kgame...
Structural overview of progressive web apps - Progressive web apps (PWAs)
gressive web apps."> <meta name="author" content="end3r"> <meta name="theme-color" content="#b12a34"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta property="og:image" content="icons/icon-512.png"> <link rel="shortcut icon" href="favicon.ico"> <link rel="stylesheet" href="style.css"> <link rel="manifest" href="js13kpwa.webmanifest"> <script src="data/games.js" defer></script> <script src="app.js" defer></script> </head> <body> <header> <p><a class="logo" href="http://js13kgames.com"><img src="img/js13kgames.png" alt="js13kgames"></a></p> </header> <main> <h1>js13kgames a-frame entries</h1> <p class="description">list of games submitted to the <a href="http://js13kgames.com/aframe"> a-frame category</a> in the <a href="http://2017.js13kgames.com">j...
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
atus unknown auto value of width and height computes to 0 but 100% on <svg> not implemented coordinate systems, transformations and units change notes exception for bad values on svgmatrix.skewx() and svgmatrix.skewy() implementation status unknown bounding box for element with no position at (0, 0) implementation status unknown defer keyword removed from preserveaspectratio attribute removed (bug 1280425) added non-scaling-size, non-rotation and fixed-position keywords for vector-effect property not implemented yet (bug 1318208) vector-effect has no effect within 3d rendering context implementation status unknown consider clip and overflow on svg document referenced by <image> implementa...