Difference between revisions of "Leif-cs488-tasks"

From Earlham CS Department
Jump to navigation Jump to search
Line 4: Line 4:
 
* Sets up Pre-Processing App and sends to client
 
* Sets up Pre-Processing App and sends to client
 
===Javascript Pre-Processing Package===
 
===Javascript Pre-Processing Package===
* Checks for a cookie
 
* <strike>Identifies screen size</strike>
 
 
* Comes up with a network throughput estimation
 
* Comes up with a network throughput estimation
* Prompts the user for verification if there is no cookie
+
** <strike>Sends AJAX request and time</strike>
 +
** <strike>Loop Script 10 Times</strike>
 +
*** Having problems with order of execution. The AJAX requests appear to be happening at once. Need to rethink this.
 +
*** Thinking instead of using a for loop to have a function file on complete of the call
 +
** Take average
 +
* Check for cookie
 +
* <strike>Reads screen size</strike>
 +
* Send data back to server in array
 
===PHP Post-Processing Package===
 
===PHP Post-Processing Package===
 
* Reads information from the JS app
 
* Reads information from the JS app

Revision as of 10:55, 30 November 2012

Server Pre-Processing

  • Read HTTP Request
  • Identifies language
  • Sets up Pre-Processing App and sends 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. Need to rethink this.
      • Thinking instead of using a for loop to have a function file 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
  • Using screen size, the request is categorized
  • Specific CSS matching that category is loaded
  • Using language, the content is translated
  • Image and video optimization is done that matches the category * Script and styles are run through a compressor
  • HTTP requests are combined
  • Adds override interface
  • Generates cookie
  • Sends content