This topic has 3 replies, 3 voices, and was last updated 11 years, 1 month ago by Anonymous.
Viewing 4 posts - 1 through 4 (of 4 total)
Hey, so I’m pretty much done creating my website and I’m looking to optimize it. I am noticing when the site loads a lot of unnecessary CSS and javascript files are loading that I did not utilize at all. I’d also like to remove the testimonials and reservation section as well to speed things up. What is the actual code for doing this?
I’ve tried something like this… wp_dequeue_style( ‘prettyPhoto’, get_template_directory_uri() . ‘css/prettyPhoto.css’ );} with no luck. I do have a child theme of this so am I typing in the wrong commands?
Please let me know because the theme is rather bulky with all these ‘features’.
Thanks,
Seth
Its there in the framework/common/head.php file where you can comment the script which you don’t like to enqueue.
If you still have any issues you can contact us on the support-aws Skype where we can help you out with that.
Regards
Maqk
Maqk, would I have to deque them each or can I just comment them out? Thanks
@sethbahookey: Sorry for the delay in response. To be dequeued, the script must be enqueued. Attempting to dequeue a script before the script is enqueued will have no effect. So, comment them which are not in use.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.