From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 2CF662C69 for ; Thu, 26 May 2016 12:41:11 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id n129so220371792wmn.1 for ; Thu, 26 May 2016 03:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=yv82hU/PbZ26uGTe/LQNW/XgcWPttDS/RMUjQ1JlBg0=; b=mazJXbZd+X8v79SW5H+qHLgfHorOXd/AUKFuTnIeDUmeaza1nCkCCbVOnsNBAOH+Yt RY6ueY1sbepS/n3wqkxuT+Xysmiz/TrUMEOYbkdxxXYKD2vLX3YOiRIR8WQF2CG1qSwQ /YYqji/fJSK47FtJIgYrp5KL4QwhmOaKAhegGA4aTyxBlQIb6L7UGt49u8ZSRP4TNSc/ WjGg5ZKZTR3H2bsAUEKLDYdk5YV6UAOqhZ9DvwrmCEP6+QUj/IpOqg6XZv1KZuJTKqXd IZvcj8g/h3qhbD8k8pEoY2mJ5Qi/0LEtiVTLYbWWyIHiR9yzuzY779laFgfBdtxEwodv fVBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=yv82hU/PbZ26uGTe/LQNW/XgcWPttDS/RMUjQ1JlBg0=; b=CtoX1JAQ/pWMyBQ5YHETioMHpn7JRh6KnfGaVpKSyNXmYk+pJYfl0GIq9PMIxA6IJD iAGEg10MVdfZw8UXSFscQ+xMlpA3xuynJJSv4KA4/xJ5kpw2+ub/H+iuqMqq8oPklyTy 2KwZjQ/EKVQUoV8aJ5t7KQpJ1kEIB4aRdB2OA4yiYNyEj1ww4++VhAY5ohA1C1zCWeJ/ c5UZ2H6K9tGlcwz6AGLx9OnQu59kpdz8twTehD3YGqr65H1RhRhfItNfE6Km4Hs0ofjT 9YdnW/XzITgtzFl6FgEi1R1zeR23C5c05bgwUbotW+TbSNgkJ8nO456Ud66hcflCLxPp AbXg== X-Gm-Message-State: ALyK8tKJGled0QsRHIT7Vv9IJmo8eUEkTayWu10hSwFDM87HfAmyre52ZcyGVY4KB2FKgui7 X-Received: by 10.28.136.84 with SMTP id k81mr3138566wmd.27.1464259270931; Thu, 26 May 2016 03:41:10 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id w10sm13683401wjk.18.2016.05.26.03.41.09 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 May 2016 03:41:10 -0700 (PDT) From: Thomas Monjalon To: web@dpdk.org Date: Thu, 26 May 2016 12:40:48 +0200 Message-Id: <1464259248-17946-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-web] [PATCH] use cached fonts X-BeenThere: web@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: website maintenance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2016 10:41:11 -0000 Accelerate page loading by downloading fonts from the CDN. Note that it is a cross-domain resource request (CORS). It is solved by adding the following header when serving fonts: Access-Control-Allow-Origin * --- fonts.css | 60 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/fonts.css b/fonts.css index 7a2ba0d..2260dfd 100644 --- a/fonts.css +++ b/fonts.css @@ -1,61 +1,61 @@ @font-face { font-family: 'opensans'; - src: url('/fonts/opensans-regular.eot'); - src: url('/fonts/opensans-regular.eot?#iefix') format('embedded-opentype'), - url('/fonts/opensans-regular.woff') format('woff'), - url('/fonts/opensans-regular.ttf') format('truetype'), - url('/fonts/opensans-regular.svg#open_sansregular') format('svg'); + src: url('http://fast.dpdk.org/fonts/opensans-regular.eot'); + src: url('http://fast.dpdk.org/fonts/opensans-regular.eot?#iefix') format('embedded-opentype'), + url('http://fast.dpdk.org/fonts/opensans-regular.woff') format('woff'), + url('http://fast.dpdk.org/fonts/opensans-regular.ttf') format('truetype'), + url('http://fast.dpdk.org/fonts/opensans-regular.svg#open_sansregular') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'opensans'; - src: url('/fonts/opensans-semibold.eot'); - src: url('/fonts/opensans-semibold.eot?#iefix') format('embedded-opentype'), - url('/fonts/opensans-semibold.woff') format('woff'), - url('/fonts/opensans-semibold.ttf') format('truetype'), - url('/fonts/opensans-semibold.svg#open_sanssemibold') format('svg'); + src: url('http://fast.dpdk.org/fonts/opensans-semibold.eot'); + src: url('http://fast.dpdk.org/fonts/opensans-semibold.eot?#iefix') format('embedded-opentype'), + url('http://fast.dpdk.org/fonts/opensans-semibold.woff') format('woff'), + url('http://fast.dpdk.org/fonts/opensans-semibold.ttf') format('truetype'), + url('http://fast.dpdk.org/fonts/opensans-semibold.svg#open_sanssemibold') format('svg'); font-weight: bold; font-style: normal; } @font-face { font-family: 'opensans'; - src: url('/fonts/opensans-italic.eot'); - src: url('/fonts/opensans-italic.eot?#iefix') format('embedded-opentype'), - url('/fonts/opensans-italic.woff') format('woff'), - url('/fonts/opensans-italic.ttf') format('truetype'), - url('/fonts/opensans-italic.svg#open_sansitalic') format('svg'); + src: url('http://fast.dpdk.org/fonts/opensans-italic.eot'); + src: url('http://fast.dpdk.org/fonts/opensans-italic.eot?#iefix') format('embedded-opentype'), + url('http://fast.dpdk.org/fonts/opensans-italic.woff') format('woff'), + url('http://fast.dpdk.org/fonts/opensans-italic.ttf') format('truetype'), + url('http://fast.dpdk.org/fonts/opensans-italic.svg#open_sansitalic') format('svg'); font-weight: normal; font-style: italic; } @font-face { font-family: 'exo2'; - src: url('/fonts/exo2-regular.eot'); - src: url('/fonts/exo2-regular.eot?#iefix') format('embedded-opentype'), - url('/fonts/exo2-regular.woff') format('woff'), - url('/fonts/exo2-regular.ttf') format('truetype'), - url('/fonts/exo2-regular.svg#exo_2.0regular') format('svg'); + src: url('http://fast.dpdk.org/fonts/exo2-regular.eot'); + src: url('http://fast.dpdk.org/fonts/exo2-regular.eot?#iefix') format('embedded-opentype'), + url('http://fast.dpdk.org/fonts/exo2-regular.woff') format('woff'), + url('http://fast.dpdk.org/fonts/exo2-regular.ttf') format('truetype'), + url('http://fast.dpdk.org/fonts/exo2-regular.svg#exo_2.0regular') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'exo2'; - src: url('/fonts/exo2-bold.eot'); - src: url('/fonts/exo2-bold.eot?#iefix') format('embedded-opentype'), - url('/fonts/exo2-bold.woff') format('woff'), - url('/fonts/exo2-bold.ttf') format('truetype'), - url('/fonts/exo2-bold.svg#exo_2.0bold') format('svg'); + src: url('http://fast.dpdk.org/fonts/exo2-bold.eot'); + src: url('http://fast.dpdk.org/fonts/exo2-bold.eot?#iefix') format('embedded-opentype'), + url('http://fast.dpdk.org/fonts/exo2-bold.woff') format('woff'), + url('http://fast.dpdk.org/fonts/exo2-bold.ttf') format('truetype'), + url('http://fast.dpdk.org/fonts/exo2-bold.svg#exo_2.0bold') format('svg'); font-weight: bold; font-style: normal; } @font-face { font-family: 'exo2'; - src: url('/fonts/exo2-blackitalic.eot'); - src: url('/fonts/exo2-blackitalic.eot?#iefix') format('embedded-opentype'), - url('/fonts/exo2-blackitalic.woff') format('woff'), - url('/fonts/exo2-blackitalic.ttf') format('truetype'), - url('/fonts/exo2-blackitalic.svg#exo_2.0black_italic') format('svg'); + src: url('http://fast.dpdk.org/fonts/exo2-blackitalic.eot'); + src: url('http://fast.dpdk.org/fonts/exo2-blackitalic.eot?#iefix') format('embedded-opentype'), + url('http://fast.dpdk.org/fonts/exo2-blackitalic.woff') format('woff'), + url('http://fast.dpdk.org/fonts/exo2-blackitalic.ttf') format('truetype'), + url('http://fast.dpdk.org/fonts/exo2-blackitalic.svg#exo_2.0black_italic') format('svg'); font-weight: bold; font-style: italic; } -- 2.7.0