Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-07-12 01:13:51

charlie.choc
Member
From: Marietta, GA
Registered: 2014-01-09
Posts: 359
Website

Logo "blink"

When I switch from page to page using the menu my logo "blinks". I don't notice this much on Firefox but I do on Chrome and Safari. Could this be due to some inefficiency in my coding (I use phplugins for the logo) or is it just my site being slow (it's hosted on a LAMP server in my basement)?

my function is:

function ttg_pallet_top_title( $style, $path ) {
    echo '
        <li class="logo">
            <a href="/">
                <picture>
                    <source media="(max-width: 440px)" srcset=
                                                 "https://stalkinglight.com/backlight/des … mage&p1=37">
                    <img src="https://stalkinglight.com/backlight/designer/?c=page&a=image&p1=34">
                </picture>
            </a>
        </li>
    ';
  return false;
} // END

Would it be better if I just put the images in a directory on the server and referenced them directly rather than via https?

This is no big deal, just something I'm trying to figure out.

Thanks.

Offline

#2 2017-07-12 01:25:07

charlie.choc
Member
From: Marietta, GA
Registered: 2014-01-09
Posts: 359
Website

Re: Logo "blink"

I answered my own question, directly referencing the images solved the "blink".

Offline

Board footer

Powered by FluxBB