Reply To: Disable CSS

Home Forums MapPress Support Disable CSS Reply To: Disable CSS

#17528
Chris
Keymaster

Hi,

The plugin prints one line of javascript and the CSS link before the page is displayed, because it can’t predict if there will be a map shortcode (or PHP code) within the page content. All script files, including the Maps API, are loaded only when a map is actually output.

The option to prevent loading the CSS completely was removed because most sites seem to use ‘minify’ plugins to combine and minify CSS files. It seemed easier to do that than to manually copy the MapPress classes to the main theme CSS file, especially since those classes will be changing more rapidly with the next few versions.