This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Statistical analysis of page load speed data collected using the Navigation Timing API shows that an HTTP request can be reasonably approximated to 0.5 seconds. | |
Permalink to this heading. | |
Introduction | |
Whilst newer browsers implement a timing API that can give the time for a request including network latency, this is not available in all browsers. In browsers that do not support the timing API it is only possible, using on page JavaScript, to measure the time taken from the start of the DOM loading to a subsequent event - such as DOM ready. Using information from browsers that support the timing API it is possible to measure both the time from request to DOM ready and the time from DOM start to DOM ready and establish a relationship such that request_time = multiplier x dom_time + constant. Once this relationship is known it can be applied when only the DOM loading to ready time is available to estimate the full request time. | |
Permalink to this heading. | |
Method | |
From visitors that were using a browser that had |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#" ng-click="doSomeAction()">some action</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- iPad and iPad mini (with @2× display) iOS ≥ 8 --> | |
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="img/touch/apple-touch-icon-180x180-precomposed.png"> | |
<!-- iPad 3+ (with @2× display) iOS ≥ 7 --> | |
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="img/touch/apple-touch-icon-152x152-precomposed.png"> | |
<!-- iPad (with @2× display) iOS ≤ 6 --> | |
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="img/touch/apple-touch-icon-144x144-precomposed.png"> | |
<!-- iPhone (with @2× and @3 display) iOS ≥ 7 --> | |
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="img/touch/apple-touch-icon-120x120-precomposed.png"> | |
<!-- iPhone (with @2× display) iOS ≤ 6 --> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="img/touch/apple-touch-icon-114x114-precomposed.png"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('angularjs-starter', []); | |
app.filter('customCurrency', ["$filter", function ($filter) { | |
return function(amount, currencySymbol){ | |
var currency = $filter('currency'); | |
if(amount<0){ | |
return '-' + currency(amount, currencySymbol).replace('(','').replace(')',''); | |
} | |
return currency(amount, currencySymbol); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script src="https://code.jquery.com/jquery-1.12.2.min.js" integrity="sha256-lZFHibXzMHo3GGeehn1hudTAP3Sc0uKXBXAzHX1sjtk=" crossorigin="anonymous"></script> | |
<script> | |
function populateVideoElement(videoId) { | |
var dynamicName = 'vzvd-' + videoId; | |
var link = "https://view.vzaar.com/"+videoId +"/player"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<button onclick="pgen(1)" >open 1 </button> | |
<div id="gen"> | |
demo | |
</div> | |
<script src="https://code.jquery.com/jquery-1.12.2.min.js" integrity="sha256-lZFHibXzMHo3GGeehn1hudTAP3Sc0uKXBXAzHX1sjtk=" crossorigin="anonymous"></script> | |
<script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Reflection; | |
namespace XmlSchemaValidator.FileUtility | |
{ | |
public class FileHelpers | |
{ | |
public static string AssemblyDirectory | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<video width="320" height="240" controls id="vieoEl" autoplay> | |
<source src="video.mp4" type="video/mp4"> | |
Your browser does not support the video tag. | |
</video> | |
<button onclick="setVideoSource()" >Update videSource </button> | |
<script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\Builds\01\src\External\Newtonsoft.Json.5.0.8\lib\net45\Newtonsoft.Json.xml: TF14061: The workspace 01_TFS-BUILD01;TFS_BuildService does not exist. | |
Exception Message: TF14061: The workspace 01_TFS-BUILD01;TFS_BuildService does not exist. (type WorkspaceNotFoundException) | |
Exception Stack Trace: | |
Server stack trace: | |
at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.HandleReply(TfsClientOperation operation, TfsMessage message, Object[]& outputs) | |
at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, Object[]& outputs) | |
at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters) | |
at Microsoft.TeamFoundation.VersionControl.Client.Repository5.UpdateLocalVersion(String workspaceName, String ownerName, ServerItemLocalVersionUpdate[] updates, Int32 maxClientPathLength) | |
at Microsoft.TeamFoundation.VersionControl.Client.WebServiceLayer.UpdateLocalVersion(String workspa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!define APPNAME "App Name" | |
!define COMPANYNAME "Company Name" | |
!define DESCRIPTION "A short description goes here" | |
# These three must be integers | |
!define VERSIONMAJOR 1 | |
!define VERSIONMINOR 1 | |
!define VERSIONBUILD 1 | |
# These will be displayed by the "Click here for support information" link in "Add/Remove Programs" | |
# It is possible to use "mailto:" links in here to open the email client | |
!define HELPURL "http://..." # "Support Information" link |