Difference between revisions of "Leif-cs488-tasks"
Jump to navigation
Jump to search
(→Javascript Pre-Processing Package) |
(→PHP Post-Processing Package) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
* <strike>Identifies language</strike> | * <strike>Identifies language</strike> | ||
** <strike>Adds language to JS app</strike> | ** <strike>Adds language to JS app</strike> | ||
− | * <strike> | + | * <strike>Load JS app on client</strike> |
===Javascript Pre-Processing Package=== | ===Javascript Pre-Processing Package=== | ||
− | * Comes up with a network throughput estimation | + | * <strike>Comes up with a network throughput estimation</strike> |
** <strike>Sends AJAX request and time</strike> | ** <strike>Sends AJAX request and time</strike> | ||
** <strike>Loop Script 10 Times</strike> | ** <strike>Loop Script 10 Times</strike> | ||
− | *** Having problems with order of execution. | + | *** <strike>Having problems with order of execution.</strike> |
− | ****The AJAX requests appear to be happening at once messing up my timings | + | **** <strike>The AJAX requests appear to be happening at once messing up my timings</strike> |
− | **** Thinking instead of using a for loop to have a function | + | **** <strike>Thinking instead of using a for loop to have a function fire on complete of the call</strike> |
− | ** Take average | + | ** <strike>Take average</strike> |
− | |||
* <strike>Reads screen size</strike> | * <strike>Reads screen size</strike> | ||
− | * | + | * <strike>Write data to cookie</strike> |
===PHP Post-Processing Package=== | ===PHP Post-Processing Package=== | ||
− | * Reads information from the | + | * <strike>Reads information from the cookie</strike> |
− | * | + | ** <strike>Stores information in variables</strike> |
− | * | + | * <strike>Reads information from HTTP Request</strike> |
− | * | + | ** <strike>Stores information in variables</strike> |
− | * | + | * <strike>Runs throughput average against conditions to determine speed</strike> |
− | * | + | * <strike>Runs screen size against conditions to determine device category</strike> |
+ | |||
+ | * Depending on this information | ||
+ | ** Optimizes scripts | ||
+ | *** Bundles | ||
+ | *** Compresses | ||
+ | ** Optimizes styles | ||
+ | *** Chooses styles appropriate to device | ||
+ | *** Bundles | ||
+ | *** Compresses | ||
+ | ** Optimizes images | ||
+ | *** Runs through a PHP image quality reducer depending on throughput condition | ||
+ | ** Chooses video quality | ||
+ | *** Can't really optimize video in PHP | ||
+ | *** There has to be pre done video qualities | ||
+ | *** Chooses the appropriate quality based on the throughput condition | ||
+ | * Translates | ||
+ | ** Sends language variable to Google Translate JS app | ||
* Adds override interface | * Adds override interface | ||
* Generates cookie | * Generates cookie | ||
− | * Sends content | + | * Sends content to client |
+ | ---- | ||
+ | Deferred |
Latest revision as of 11:32, 10 December 2012
Server Pre-Processing
Read HTTP RequestIdentifies languageAdds language to JS app
Load JS app on client
Javascript Pre-Processing Package
Comes up with a network throughput estimationSends AJAX request and timeLoop Script 10 TimesHaving problems with order of execution.The AJAX requests appear to be happening at once messing up my timingsThinking instead of using a for loop to have a function fire on complete of the call
Take average
Reads screen sizeWrite data to cookie
PHP Post-Processing Package
Reads information from the cookieStores information in variables
Reads information from HTTP RequestStores information in variables
Runs throughput average against conditions to determine speedRuns screen size against conditions to determine device category
- Depending on this information
- Optimizes scripts
- Bundles
- Compresses
- Optimizes styles
- Chooses styles appropriate to device
- Bundles
- Compresses
- Optimizes images
- Runs through a PHP image quality reducer depending on throughput condition
- Chooses video quality
- Can't really optimize video in PHP
- There has to be pre done video qualities
- Chooses the appropriate quality based on the throughput condition
- Optimizes scripts
- Translates
- Sends language variable to Google Translate JS app
- Adds override interface
- Generates cookie
- Sends content to client
Deferred