Clean Head and page speed

Hi and thank you so much for the hard work with Beans!

I was impreseed by the clean code and speed of Beans and decided to give it a try. I have made a clean installation of wordpress, Beans framework and Beans child-theme to test it out. No extra plugins. Now I have two quidetions:

1 In your demo the head of the theme is very clean and contains no extra fluff. However on my own install the head is a little bit more messy and contains a lot more bloat despite turning on compile for css and js. Do you use any extra plugin or function to have the result of your demo? How do I get that result?

2 My install (shared hosting) gives fast loading speed, but not as fast as the demo site. Do you use any extra cache plugin for that or is it only due to the server you're using?

Link to test website:

Hey Hemen,

Beans demo doesn't use any plugin but we have some home made customization. To clean up the head, we use the following snippet which you can add your childe theme functions.php:

// Remove WP stuff.
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'wp_shortlink_wp_head');
remove_action( 'wp_head', 'wlwmanifest_link');
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'feed_links', 2 );
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );

The main reason this is not added to Beans Core is simply that it really depends on the website needs and therefore doesn't apply to all websites. All the stuff above is added by WP Core and not related to Beans itself.

When it comes to the speed, this will really depends on your hosting and setup. Currently the demo is hosted at Wiredtree and some optimisation is done on the Cloudflare side (cdn etc.). Site optimisation can be tricky and requires some caching understanding at all levels, no matter what your website is built with 😉

What is important to know is that Beans is really fast out of the box comparing to other themes on the WP market, then optimization can be done to speed it up even further.

Hope that answer your questions,

That answerd my question. I installed a cache plugin and got pretty much the same instantaneous load speed feel as in your demo. Big thanx!

Write a reply

Login or register to write a reply, it's free!