Combine all CSS files with PHP – WortGepresst



STARTSEITE MULTIMEDIA WORTGEPRESST FAMILIENBANDE BOOKMARK PRIVACY


Combine all CSS files with PHP

Delivering one CSS file with your web pages is much faster than delivering multiple files because there are fewer HTTP requests involved.
Edit this snippet as indicated with the path to your CSS directory, and then add this script to a blank PHP file named “css.php” (or whatever you’d like):

After uploadingcss.phpto the server, you can link to it from within your web pages. So instead of doing this:

..you only need this:
<link rel='stylesheet' href='//example.com/css/css.php' type='text/css' media='all'>

Font Resize
Contrast
Zur Werkzeugleiste springen