Font Awesome icons not showing in Chrome, a MaxCDN related Cross-Origin Resource Sharing policy issue

Here is the working method to allow access from all domains for webfonts: # Allow access from all domains for webfonts. # Alternatively you could only whitelist your # subdomains like “subdomain.example.com”. <IfModule mod_headers.c> <FilesMatch “\.(ttf|ttc|otf|eot|woff|font.css|css)$”> Header set Access-Control-Allow-Origin “*” </FilesMatch> </IfModule>

Why use protocol-relative URLs at all?

As of December 2014, Paul Irish’s blog on protocol-relative URLs says: 2014.12.17: Now that SSL is encouraged for everyone and doesn’t have performance concerns, this technique is now an anti-pattern. If the asset you need is available on SSL, then always use the https:// asset. Unless you have specific performance concerns (such as the slow … Read more

Loading Bootstrap from CDN with Require.js

requirejs.config({ appDir: “.”, baseUrl: “js”, paths: { /* Load jquery from google cdn. On fail, load local file. */ ‘jquery’: [‘//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min’, ‘libs/jquery-min’], /* Load bootstrap from cdn. On fail, load local file. */ ‘bootstrap’: [‘//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.’, ‘libs/bootstrap-min’] }, shim: { /* Set bootstrap dependencies (just jQuery) */ ‘bootstrap’ : [‘jquery’] } }); require([‘jquery’, ‘bootstrap’], function($) { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)