Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I only see two possibilities there. Either change all of your CSS-Selectors to something with a higher specifity or use Javascript to remove the Stylesheets you don't want to load.</p> <p>Changing the CSS-Selectors is no problem if you use a CSS-Preprocessor. You could even just use it this one time to change alle the selectors.</p> <p>With Javascript you would need a point where you can hang an event listener which removes the stylesheet. This point has to be right after the stylesheet is added.</p> <p>If you have no such point you would have to overwrite document.createElement (which is a bad practice in general).</p> <p>This worked for me. Due to IE&lt;9s lack of addEventListener and indexOf for arrays it doesn't work there. But after you fix that it should work there as well:</p> <pre><code>(function () { var createElement = document.createElement, stylesheetBlacklist = [ 'http://ajax.googleapis.com/ajax/static/modules/gviz/1.0/table/table.css' ]; document.createElement = function (tagname) { var e = createElement.apply(this, arguments); if (tagname === 'link') { if (e.__defineSetter__) { var setAttr = e.setAttribute; e.__defineSetter__('src', function (val) { e.setAttribute('src', val); }); e.setAttribute = function (attrName, attrVal) { if (attrName !== 'src' || stylesheetBlacklist.indexOf(attrVal) === -1) { setAttr.call(e, attrName, attrVal); } } } else { e.addEventListener('load', function () { if (stylesheetBlacklist.indexOf(this.src) &gt; -1) { this.parentNode.removeChild(this); } }); } } return e; } }()); </code></pre> <p>Of course this won't prevent any stylesheets from being @imported inside a style element. So it really is more a dirty hack than a solution …</p> <p>It is a shame that Googles API offers a "nocss" option but doesn't support it in the visualization module.</p> <p>EDIT: If the browser supports <strong>defineSetter</strong> it no longer even loads the stylesheet.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload