"Slim" Visual Composer

Posted in: Newspaper
Post count: 285

Good morning tagDiv,
As we talked in a previous topic about dequeue_visual_composer working together with Speed Booster, which by the way, you’ve solved, right now I find that all categories and tags loaded this VC plummet even if is not required.

My Q is, how we can dequeue this plugin from categories and tags?

I’m not using at all Visual Composer for nothing, except the homepage.

As we know, speaking from the SEO perspective, category & tags are a little bit hard to optimize due to the limited options provide by WordPress itself, so, without a good speed optimization we do not do anything.

Thank you very much!

I know you’re working on your own pagebuilder, but for the moment we’re going to wait an estable version.

  • This topic was modified 9 years by nairolf.
Post count: 285

I tried for both (category & tags) on the speed booster file:

		if(is_tag()){
            unset($this->style_footer_queue['js_composer_front']);
        }
		
		if(is_category()){
            unset($this->style_footer_queue['js_composer_front']);
        }

And seems that the .js is removed from source. You can confirm whether it is right?
There’s any way to piece together this two conditions in the same function?

  • This reply was modified 9 years by nairolf.
Post count: 22421

Hello,

It seems the code is correct. The functions needed are provided by wp on the codex: https://developer.wordpress.org/reference/functions/is_category/
https://codex.wordpress.org/Function_Reference/is_tag
You can try to use one of these methods: http://stackoverflow.com/questions/5955678/how-to-combine-two-if-statements-in-php

I hope this helps.
Thank you!

Post count: 285

+100
Thank you again! 🙂

Post count: 285

Hi again guys,
Please, your kind to ask your developer Âżwhat happen with category & tags pages?
Like you see on the printscreen, we use only default theme without third plugins and Speedbooster enabled.
Even if this minimum 3 resources are placed at the bottom of the source (the same works for posts), Google detect them like render-blocking (for PC and also mobile) only when categories and tags are analyzed.
I have no explanation, for all other pages (pages & posts) we have maximum of points from Insights for both devices, but for categories and tags, no, why?

Thank you!

possibly receive a response on Monday, so nice weekend!

  • This reply was modified 9 years by nairolf.
Post count: 22421

Hello,

We only tested the page speed test on the homepage. We only suggest scanning the homepage on the page speed tests, not other parts of the site. We have not tested posts, categories, tags or other templates.

Thank you for your understanding.

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.