Support » Theme: SmartShop » Errors by css3-mediaqueries.js in Chrome and Firefox

  • Resolved RavanH

    (@ravanh)



    Hi,

    It turns out the version of css3-mediaqueries.js included in this theme causes many errors in . It appears some stylesheets are being blocked because of “No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”

    This is what I get in the Chrome console:

    OPTIONS http://mysite.tld/wp-content/plugins/bbpress/templates/default/css/bbpress.css?ver=2.5.4-5380  css3-mediaqueries.js?ver=4.0:136
    XMLHttpRequest cannot load http://mysite.tld/wp-content/plugins/bbpress/templates/default/css/bbpress.css?ver=2.5.4-5380. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://mysite.tld' is therefore not allowed access. (index):1
    OPTIONS http://fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=4.0  css3-mediaqueries.js?ver=4.0:136
    XMLHttpRequest cannot load http://fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=4.0. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://mysite.tld' is therefore not allowed access. (index):1
    OPTIONS http://fonts.googleapis.com/css?family=Open+Sans%3A300%2C400%2C700&ver=1.0  css3-mediaqueries.js?ver=4.0:136
    XMLHttpRequest cannot load http://fonts.googleapis.com/css?family=Open+Sans%3A300%2C400%2C700&ver=1.0. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://mysite.tld' is therefore not allowed access. (index):1
    OPTIONS http://s.gravatar.com/css/hovercard.css?ver=2014Octaa  css3-mediaqueries.js?ver=4.0:136
    XMLHttpRequest cannot load http://s.gravatar.com/css/hovercard.css?ver=2014Octaa. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://mysite.tld' is therefore not allowed access. (index):1
    OPTIONS http://s.gravatar.com/css/services.css?ver=2014Octaa  css3-mediaqueries.js?ver=4.0:136
    XMLHttpRequest cannot load http://s.gravatar.com/css/services.css?ver=2014Octaa. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://mysite.tld' is therefore not allowed access. (index):1
    XMLHttpRequest cannot load http://s0.wp.com/i/noticons/noticons.css?ver=3.1.1-201441. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://mysite.tld' is therefore not allowed access. (index):1
    XMLHttpRequest cannot load http://s0.wp.com/wp-content/mu-plugins/notes/admin-bar-v2.css?ver=3.1.1-201441. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://mysite.tld' is therefore not allowed access. (index):1

    Would it not be better to just remove this script? There is already this in the head section:

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
                <!--[if lt IE 9]>
                  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
                  <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
                <![endif]-->

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Errors by css3-mediaqueries.js in Chrome and Firefox’ is closed to new replies.