Support » Plugin: Bug Library » [Plugin: Bug Library] Proper load of CSS

Viewing 2 replies - 1 through 2 (of 2 total)
  • I take that back. I just took a look at the code, and then saw the additional stylesheet (which still gets added to all pages).

    Also, off topic. But the CSS added to the head should be compressed in some manner. Again for speed.

    Try:

    echo "<style id='BugLibraryStyle' type='text/css'>\n";
    			$css = stripslashes($genoptions['fullstylesheet']);
    			$css = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css);
    			/* remove tabs, spaces, newlines, etc. */
    			$css = str_replace(array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), '', $css);
    			echo $css;
    		echo "</style>\n";
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Bug Library] Proper load of CSS’ is closed to new replies.