PHP Classes

File: lib/class.fontperformance.php

Recommend this page to a friend!
  Classes of riccardo castagna   PHP Font Face Performance Control   lib/class.fontperformance.php  
File: lib/class.fontperformance.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Font Face Performance Control
Optimize the load of page fonts embedding into CSS
Author: By
Last change: PHP MAIN CLASS

important update: before this update, with an option, the files were downloaded locally and the client device did not have to connect to the external fonts but the server, however, always did.
With this update, in addition to the files of external fonts downloaded, text files are created and the server, verifying the presence of these text files, no longer connects to the server of external fonts.
This update further improves web performance and fonts seem to be welded.

Sometime with arrays and loops curl_multi_init loses some hits, to work around this problem it is necessary to divide the loop into two parts: the start with key number zero and than, all the rest. In this way the curl_multi_init doesn't lose any hits.
Date: 4 years ago
Size: 14,828 bytes

You need to be a registered user and login to get this file.

Login Immediately with your account on: