Replaces references to non-optimized scripts or stylesheets