• Hey guys!

    So I am working on my Photography Website, and have basically one MAIN PAge with pictures on it. All of them resized, under 1MB all good.

    I have a huge loading time of almost 60s recording to:
    https://tools.pingdom.com/#!/easMzx/http://www.gregslens.ch

    I noticed that I have an Issue with the query strings. I noticed that it’s used a lot of ‘?resize=’ so I entered the following in the functions.php:
    function _remove_script_version( $src ){
    $parts = explode( ‘?resize=’, $src );
    return $parts[0];
    }
    add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 );
    add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 );

    It’s a bit better, but it still shows me the same.. Website is already cached.
    What else could I do to improve?
    I already downloaded several plugins, several optimizers etc..

    Also in the Backend, every time I save something I have to wait several seconds.. it’s extremely slow.. I have a good hoster tho.. but maybe I can make some server based settings that might help speeding up the loading?

    Thanks for your help!

    Cheers Greg

    • This topic was modified 8 years, 4 months ago by gregk92.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It appears you’ve done something to your theme:
    Parse error: syntax error, unexpected '=' in /home/nomadbro/www/gregslens/wp-content/themes/rhythm/functions.php on line 4

    When you’ve fixed that file, we can work on the rest.

    Thread Starter gregk92

    (@gregk92)

    Fixed it – adjusted the function.php to:

    //* Remove query strings from scripts
    function _remove_script_version( $src ){
        $parts = explode( '?=', $src );
        return $parts[0];
    }
    add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
    add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You still have the same error in functions.php.

    Thread Starter gregk92

    (@gregk92)

    I think it’s your cache.. Just checked on 3 different devices.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I just tried in an incognito window and a different browser. Before you remove query strings, it might be a good idea to understand why they’re there. Please comment out that code so I can see what you’re talking about. (Note: I have to go out for several hours and my not be able to respond for a while.)

    Thread Starter gregk92

    (@gregk92)

    removed it – function.php is in it’s original form again

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Hmmm.. I still get the same error. I wonder if W3 Total Cache is messing things up.

    See https://cldup.com/u_UNHwGrvVr/4TZYIu.png

    Thread Starter gregk92

    (@gregk92)

    Okey I deactivated it and installed WP Fastest Cache instead. The backend is already way faster, but I still struggle with the query string issue and loading time..

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Some of the slow content is due to mixed content. Install the plugin “better search replace”. Search for http://gregslens.ch and replace with https://gregslens.ch.

    Mixed Content: The page at 'https://gregslens.ch/' was loaded over HTTPS, but requested an insecure image 'http://gregslens.ch/wp-content/uploads/2018/01/emtpy.png'. This content should also be served over HTTPS.
    (index):31 Mixed Content: The page at 'https://gregslens.ch/' was loaded over HTTPS, but requested an insecure image 'http://gregslens.ch/wp-content/uploads/2017/05/LOGO_black.png'. This content should also be served over HTTPS.
    autoptimize_e3ea2b7d9c91b5b37212bf760328d5c5.js:2 JQMIGRATE: Migrate is installed, version 1.4.1
    jquery.js:3 Mixed Content: The page at 'https://gregslens.ch/' was loaded over HTTPS, but requested an insecure image 'http://gregslens.ch/wp-content/uploads/2015/03/SINGLE_SHOTS.'. This content should also be served over HTTPS.
    Sa @ jquery.js:3
    jquery.js:3 Mixed Content: The page at 'https://gregslens.ch/' was loaded over HTTPS, but requested an insecure image 'http://gregslens.ch/wp-content/uploads/2015/03/fb_skate.'. This content should also be served over HTTPS.
    Sa @ jquery.js:3
    jquery.js:4 Mixed Content: The page at 'https://gregslens.ch/' was loaded over HTTPS, but requested an insecure image 'http://gregslens.ch/wp-content/uploads/2015/03/SA%CC%88NDSSNIPES.'. This content should also be served over HTTPS.
    
    (index):1 Mixed Content: The page at 'https://gregslens.ch/' was loaded over HTTPS, but requested an insecure video 'http://gregslens.ch/wp-content/uploads/2017/08/KEV_ART.mp4'. This content should also be served over HTTPS.
    (index):1 Mixed Content: The page at 'https://gregslens.ch/' was loaded over HTTPS, but requested an insecure video 'http://gregslens.ch/wp-content/uploads/2015/03/SINGLE_SHOTS.mp4'. This content should also be served over HTTPS.
    (index):1 Mixed Content: The page at 'https://gregslens.ch/' was loaded over HTTPS, but requested an insecure video 'http://gregslens.ch/wp-content/uploads/2015/03/SA%CC%88NDSSNIPES.mp4'. This content should also be served over HTTPS.
    (index):1 Mixed Content: The page at 'https://gregslens.ch/' was loaded over HTTPS, but requested an insecure video 'http://gregslens.ch/wp-content/uploads/2015/03/fb_skate.mp4'. This content should also be served over HTTPS.
    (index):1 Mixed Content: The page at 'https://gregslens.ch/' was loaded over HTTPS, but requested an insecure video 'http://gregslens.ch/wp-content/uploads/2015/03/SINGLE_SHOTS.mp4'. This content should also be served over HTTPS.
    (index):1 Mixed Content: The page at 'https://gregslens.ch/' was loaded over HTTPS, but requested an insecure video 'http://gregslens.ch/wp-content/uploads/2015/03/fb_skate.mp4'. This content should also be served over HTTPS.
    (index):1 Mixed Content: The page at 'https://gregslens.ch/' was loaded over HTTPS, but requested an insecure video 'http://gregslens.ch/wp-content/uploads/2015/03/SA%CC%88NDSSNIPES.mp4'. This content should also be served over HTTPS.

    The “?resize=” stuff is added by Jetpack’s Photon service. It actually makes your site faster. If you object to the “?resize” stuff, disable Jetpack’s Photon.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Web extremely slow + JQuery String Issue’ is closed to new replies.