Leif-cs488-tasks: Difference between revisions

From Earlham CS Department
Jump to navigation Jump to search
Lnulric09 (talk | contribs)
Lnulric09 (talk | contribs)
 
(4 intermediate revisions by the same user 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>Sends JS app to client</strike>
* <strike>Load JS app on client</strike>
----
Deferred
* item


===Javascript Pre-Processing Package===
===Javascript Pre-Processing Package===
Line 17: Line 14:
** <strike>Take average</strike>
** <strike>Take average</strike>
* <strike>Reads screen size</strike>
* <strike>Reads screen size</strike>
* <strike>Send data back to server in array</strike>
* <strike>Write data to cookie</strike>


===PHP Post-Processing Package===
===PHP Post-Processing Package===
* Reads information from the JS app
* <strike>Reads information from the cookie</strike>
** Stores information in variables
** <strike>Stores information in variables</strike>
* Reads information from HTTP Request
* <strike>Reads information from HTTP Request</strike>
** Stores information in variables
** <strike>Stores information in variables</strike>
* Runs throughput average against conditions to determine speed
* <strike>Runs throughput average against conditions to determine speed</strike>
** Adds to user info array
* <strike>Runs screen size against conditions to determine device category</strike>
* Runs screen size against conditions to determine device category
 
** Adds to user info array
* Depending on this information
* Depending on this information
** Optimizes scripts
** Optimizes scripts

Latest revision as of 16:32, 10 December 2012

Server Pre-Processing

  • Read HTTP Request
  • Identifies language
    • Adds language to JS app
  • Load JS app on client

Javascript Pre-Processing Package

  • Comes up with a network throughput estimation
    • Sends AJAX request and time
    • Loop Script 10 Times
      • Having problems with order of execution.
        • The AJAX requests appear to be happening at once messing up my timings
        • Thinking instead of using a for loop to have a function fire on complete of the call
    • Take average
  • Reads screen size
  • Write data to cookie

PHP Post-Processing Package

  • Reads information from the cookie
    • Stores information in variables
  • Reads information from HTTP Request
    • Stores information in variables
  • Runs throughput average against conditions to determine speed
  • Runs 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
  • Translates
    • Sends language variable to Google Translate JS app
  • Adds override interface
  • Generates cookie
  • Sends content to client

Deferred