Flashcards
FE Web Applications Components
Cards in this deck (4)
- 1CallbacksWhen an ajax call is done the response (success, error) is a callback.
- 2PromisesPromises are a far cleaner solution to writing asynchronous code than callbacks.
The resulting code that’s created is easier to read and is often written the order the application will execute.
So it can be easier to trace through code in your head. - 3EncodingWhen you work with AJAX (or other communication between client and server), you
need to ensure that the information is sent in a form that’s suitable for transmission.
You do that using encoding. If you don’t use encoding, it’s quite possible that some
information won’t be received exactly as it was sent. This is especially true for some
special character information—for example, spaces, quotation marks, and so on.
http://pressbin.com/tools/urlencode_
urldecode/ - 4Shims and PolyfillsShims and polyfills are software components designed to allow older browsers to
run more modern code. A shim is a piece of code that intercepts existing API calls
on a browser and implements different behavior, which enables standardizing APIs
across different environments. So, if two browsers implement the same API differently,
you could use a shim to intercept the API calls in one of those browsers and make
its behavior align with the other browser. A polyfill is a piece of JavaScript that can
“implant” missing APIs into an older browser. For example, shims and polyfills enable
older ECMA5 browsers to run ECMA6 code.
Information
- Description
- This flascards have the information relative with new web components for web applications
- Created by
- Juan Carlos Joya Carvajal
- Views
- 60
- Tags
- Rating