Leif-cs488-tasks: Difference between revisions

From Earlham CS Department
Jump to navigation Jump to search
Lnulric09 (talk | contribs)
Lnulric09 (talk | contribs)
Line 19: Line 19:
===PHP Post-Processing Package===
===PHP Post-Processing Package===
* Reads information from the JS app
* Reads information from the JS app
* Using screen size, the request is categorized
** Stores information in variables
* Specific CSS matching that category is loaded
* Reads information from HTTP Request
* Using language, the content is translated
** Stores information in variables
* Image and video optimization is done that matches the category * Script and styles are run through a compressor
* Runs throughput average against conditions to determine speed
* HTTP requests are combined
** Adds to user info array
* Runs screen size against conditions to determine device category
** Adds to user info array
* 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

Revision as of 16:06, 30 November 2012

Server Pre-Processing

  • Read HTTP Request
  • Identifies language
    • Adds language to JS app
  • Sends JS app to 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
  • Check for cookie
  • Reads screen size
  • Send data back to server in array

PHP Post-Processing Package

  • Reads information from the JS app
    • Stores information in variables
  • Reads information from HTTP Request
    • Stores information in variables
  • Runs throughput average against conditions to determine speed
    • Adds to user info array
  • Runs screen size against conditions to determine device category
    • Adds to user info array
  • 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