Performance tip

To increase performance even further, place your stylesheets in <head>-area and the javascript before the </body>-tag at the end of the document.

.htaccess change for domain sharding

To prevent duplicate content, you need to make a change in the .htaccess file of your ProcessWire installation. Add the following at the end of the .htaccess file in the ProcessWire Webroot and change "static.mysite.com" to your subdomain and "http://www.mysite.com" to your main domain. Please take care, the %-sign at the end of the domain is required!

# ----------------------------------------------
# Domain sharding option
# ----------------------------------------------
<IfModule mod_rewrite.c>

    RewriteCond %{HTTP_HOST} ^static.mysite.com [NC]
    RewriteCond %{REQUEST_URI} !^.*\.(cur|gif|ico|jpe?g|png|svgz?|webp|eot|otf|ttc|ttf|woff|css|js)$
    RewriteRule ^(.*)$ http://www.mysite.com%{REQUEST_URI} [L,QSA]

</IfModule>