Site logo

Archived topic

Database lookups in header.php file

1 reply · Started by Shaun on July 15, 2021

Viewing posts 1–2 of 2

Hi there,

I've been working on setting up a Generatepress child theme that we'll use as the base for our new website builds.

In an effort to improve loading speeds, something that was suggested to me was to add the header.php file to the child theme folder and replace these DB lookups:

<html <?php language_attributes(); ?>>
<meta charset="<?php bloginfo( 'charset' ); ?>">

With the following:

<html lang="en-AU">
<meta charset="UTF-8">

I understand we're probably splitting hairs here, but we're trying to take an "every little bit helps" approach to speed optimisation.

Should we expect any issues using the above with the GeneratePress theme? Are we wasting our time worrying about this?

Any insight would be much appreciated!

Hi there,

shouldn't be an issue doing that with GP.
Speed improvement - i doubt it will even be noticeable...

This archived topic is closed to new replies.