Tuesday, February 3, 2015

Using Microsoft OneDrive as Content Delivery Network (CDN)

For web developers who are mindful of Page Speed scores, finding a Content Delivery Network (CDN) to load your static content from a cookie-free domain is a nice to have.

This is a examination of using Micorosoft OneDrive as a possible CDN. I this test I used
1drive.com to hosting a 515Kb PNG image, you see at top of this blog.  One caveat of the top is that 
OneDrive is a COOKIE domain and requires authentication to get it's public resources. 

To get a link to use in your website page for testing, read my blog entry on  
How to Get Direct Download Link From OneDrive.

Preliminary, we expect the results to be poor, because there are crumbs, but you be the judge of the stats below.


Results from WebPagetest.org 

We have the initial request at onedrive.live.com  to get credentials for the image that lasts 603ms (line 39). The image is downloaded (on line 40) and viewed in detail as Request #40. The image dowloaded in 875ms, and whole transaction took 2099ms, which is quite normal. But , the request just a very long time to initiate, as indicated by the Start Offset at 13.719s, which is well rather totally explainable! 



click to get larger image, ditto for below













Results from IE 11 Browser 

Now things get  interesting, notice that the Wait time is on initial credential request is only .67s, and response with redirection to download image took only 1.48s, as inidicated in 2nd image below in the pop-up as Wait =1.48s) and not 14s as reported above to start to download the image. 






Here the Wait Time (time since page loaded) is 1.48s, and the Gap is 4.4s (in pop-up below) The image took a 1.2s, for .5Mb to download. The time before it rendered to the screen was 4.40s (the Gap= in the pop-up). The total time for both request is 2.01s.

Some quick definitions for the DETAILS, timings windows gotten by using F12 in IE11.

  1. The Gap is the time gap between the completion of the request and the time the whole page has finished loading.
  2. The green vertical line shows the point of time when the OnDomContentLoaded event occurred. This event indicates the readiness of the DOM – from this time is is possible to use JavaScript to manipulate it.
  3. The red vertical line indicates the point of time when the page’s Load event occurred, which means the whole page, including it’s resources is ready to be shown in browser.

Results from FireFox

Firefox completes both requests in 1311 ms or 1.311s. 





Results from Chrome

Chrome indicates 1 line for a redirect for this request and is took in total 744ms or .7s to complete both request! Remember this is a .5Mb image size.





So what do you think? 

Sunday, January 18, 2015

jQuery Ripples IE 11 Fix - backgroundY undefined error fixed



I fixed jQuery Ripples libary (jquery.ripples.js) for IE11, specifically the backgroundY undefined error.

Learn more about jQuery with a  free course at Microsoft Virtual Academy : Introduction to jQuery






IE 11 Fixed code below:


Thursday, January 15, 2015

Malware (Conduit Search, Ask Toolbar) installed without consent is illegal in Canada - Go Canucks!

Installing computer programs on an individual's computer without consent is now illegal in Canada 

January 15, 2015 - Ottawa–Gatineau –Canadian Radio-television and Telecommunications Commission (CRTC)

It official, as of today, new requirements for installing computer programs have come into force. Businesses installing software or computer programs on another person’s computer must now have their consent.

Press release here - http://bit.ly/installillegalwithoutok

What does this mean to you?  - read on below


Not sure what "cause the installation of software" means? Let us clarify.


Here is a scenario from the Canada’s Anti-Spam Legislation (CASL) FAQ Sheet - http://bit.ly/CASLDetails

CASL applies to software or computer programs that are both installed and caused to be installed on any other person's computer system, without consent.

The following are examples of computer programs which are 'caused to be installed':

Examples

  1. Sometimes, malicious software (malware) is installed along with other software. For example, a free Tic Tac Toe app may include concealed malware that is not disclosed to the user. In this situation, the user would be installing the Tic Tac Toe app, so CASL would not apply. However, CASL would apply to the installation of the malware since the software developer would be causing it to be installed. >>>READ ILLEGAL!<<<<
  2. A consumer purchases a music CD and inserts it in their computer to listen to music or copy songs. However, the CD includes concealed software that is automatically executed when the CD is inserted into the computer. In that case, the distributor or developer would have caused the software to be installed.
Malware hidden in software is now illegal to install without your consent. (It's usually obtained as a check mark box later in the install process)

That means the annoying malware that such as; 


  1. Conduit Toolbar & Search (concealed in Bittorrent, utorrent, and in DivX Player bundled as  "UniBlue Driver") 
  2. Ask Toolbar & Search (bundled with Java)

that takes over you default home page that appear without your consent is illegal now in Canada!!! YEAH! Canada!

Ask Toolbar gets commonly install with JAVA, you must un-check this but sometimes this does not appear on a update or does not work when you do uncheck it, so beware.























Tip : Install Java using the Command prompt method and SET any SPONSOR not to appear
  1. Click Start. In the Start Search box, type command.
  2. A list of matches will appear. click Command Prompt in the Programs list.
  3. To start the installation, in the Command Prompt window, navigate to the Downloads directory
    • cd Downloads
      then type:
    • jre-7u55-windows-i586-iftw.exe SPONSORS=0

    Here SPONSORS=0 is the flag that will disable sponsor offerings in Java updates.