Hi Amy,
Thank you for choosing Master Slider.
Because the file does not exist, it takes 6s to load the page.
Please add a new style to a slider, then save it. Now the file is created.
Test it again and let us know if the problem persists.
Best,
Averta
Right, but why would I want to add styles in there if I don’t need to? I’m trying to have less file calls, that’s why I want to remove it. How can I do that?
Hi Amy,
By adding the below code to functions.php file on your theme, you can dequeue style:
add_action( 'wp_enqueue_scripts', 'dequeue_masterslider_custom_css', 99 );
function dequeue_masterslider_custom_css() {
wp_dequeue_style( 'ms-custom' );
}
Please let me know if you have any further questions.
Best,
Averta
Awesome! Thank you! I will try that out today.
Much appreciated.
Amy
Hi Amy,
You are very welcome 🙂
Please let me know the result.
Best,
Averta
Hello-
Sorry, some reason I thought I had tested this already and it worked but it’s not. The file is still loading.
Amy
Okies, I was able to find it now:
add_action( 'wp_enqueue_scripts', 'dequeue_masterslider_custom_css', 99 );
function dequeue_masterslider_custom_css() {
wp_dequeue_style( 'msl-custom' );
}