Term
How would you optimize a website’s assets/resources |
|
Definition
- minimize http requests
- use a CDN
- utilize browser caching
- prioritize visible content (loading resources for visible then using JS to load remaining)
- lazy loading
- use sprites (collection of images put in a single img)
- concat and minify files
|
|
|
Term
How many resources will a browser download from a given domain at a time |
|
Definition
|
|
Term
|
Definition
- Optimize images
- browser caching
- compression
- optimize and minimize CSS
- place JS files at bottom of page
|
|
|
Term
flash of unstyled content (FOUC) |
|
Definition
When a page appears briefly with default browser styling bc the styling resources have not yet been loaded. |
|
|
Term
Accessible Rich Internet Applications (ARIA) |
|
Definition
set of attributes that define ways to make web pages more accessible to users with disabilities
|
|
|
Term
|
Definition
- Query language for APIs and a runtime for filling those queries with your existing data.
- queries define how data is recieved
- Get many resources in a single request
- typesystem
|
|
|
Term
|
Definition
- Cross origin resource sharing
- restricts request from a different domain than the domain from which the first asset was served
|
|
|
Term
|
Definition
worst case complexity O(n²)
best O(n)
avg O(n²)
iterates through array swapping values arr[i] & arr[i+1] until list is sorted |
|
|
Term
|
Definition
best/worst/avg O(n²)
each loop removes one element and adds to sorted portion of array |
|
|
Term
|
Definition
divide and conquer
O(nlogn)
- continuously divide the list until you have N sublists, where each sublist has one unsorted element, and N is the number of elemnts in the array
- Merge the lists together, 2 at a time to produce new sorted sublists, until all elements have been merged into a single sorted array
|
|
|
Term
|
Definition
divide and conquer
O(nlogn)
- continuously divide the list until you have N sublists, where each sublist has one unsorted element, and N is the number of elemnts in the array
- Merge the lists together, 2 at a time to produce new sorted sublists, until all elements have been merged into a single sorted array
|
|
|