Would appreciate if you checked the site speed

Discussion in 'Websites' started by qwikad.com, Aug 21, 2024.

  1. #1
    I just updated the script to work in php8+. All I really want to know is two things:

    1. How fast the index page loaded

    2. How fast an ad (in the slider) loaded when you clicked on it.

    https://qwikad.com

    Thanks!!
     
    qwikad.com, Aug 21, 2024 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,792
    Likes Received:
    4,529
    Best Answers:
    123
    Trophy Points:
    665
    #2
    For the main index load - noticeable lag connecting but fast after that. No lag for the ads.

    chrome, macos, wifi from fibre

    upload_2024-8-22_13-45-21.png
     
    sarahk, Aug 21, 2024 IP
  3. useme

    useme Peon

    Messages:
    1
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Hello @qwikad.com,

    Great job on updating your script to be compatible with PHP8+! Regarding your questions about site performance:

    1. Index Page Load Time: The load time can vary based on several factors including server speed, the amount of content on the page, and user connection speed. Tools like Google PageSpeed Insights or GTmetrix can provide a detailed analysis of what might be slowing down your page.

    2. Ad Load Speed in the Slider: This is often influenced by the ad content itself (size of images, any scripts running, etc.) as well as how the slider is implemented. If the slider is not optimized for asynchronous loading, it might delay the ad display.
    If you're looking for detailed insights on optimizing website speed and performance, especially for dynamic content like ads, I've covered similar topics extensively, focusing on best practices for web performance. While I can’t post links directly here, you can find this guide by searching for "https://getgbwa.in/" with keywords like 'website speed optimization'. It might provide you with some actionable advice that could help improve both your index load time and ad responsiveness.

    Keep up the great work, and I look forward to seeing how your site progresses!
     
    useme, Aug 21, 2024 IP
    MargoFarrel likes this.
  4. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,269
    Likes Received:
    1,693
    Best Answers:
    31
    Trophy Points:
    475
    #4
    Thank you. Something that my old script wasn't affected by, but this one is: where the "sql select" codes are may determine how fast the page will load. The higher on a page they are the faster it'll load.

    Another thing I keep noticing: Firefox and Opera load the site faster than Chrome. I wonder if some js files and the overall page structure is the cause of it.
     
    Last edited: Aug 22, 2024
    qwikad.com, Aug 22, 2024 IP
  5. sarahk

    sarahk iTamer Staff

    Messages:
    28,792
    Likes Received:
    4,529
    Best Answers:
    123
    Trophy Points:
    665
    #5
    It depends on what that query is doing but you may be able to cache the results or split it out. Caching probably is out but give this a try.

    Let's say the SQL query that is slowing things down is the for the slider....

    [​IMG]

    I'd use CSS to create the space and then have a javascript function that uses ajax to load the actual content. There needs to be another script to run the problem query and output json.

    That way the query is run separately and the page loads with the ads loading moments later.
     
    sarahk, Aug 22, 2024 IP
    qwikad.com likes this.
  6. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,269
    Likes Received:
    1,693
    Best Answers:
    31
    Trophy Points:
    475
    #6
    I'll keep experimenting. As I mentioned, my old script would start loading the pages while executing the queries. PDO/php8+ is funky. There's this weird split second/second delay before every execution. I'll have to accept it as a new norm and find a way to work around it (as you suggested also).
     
    qwikad.com, Aug 22, 2024 IP
  7. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,269
    Likes Received:
    1,693
    Best Answers:
    31
    Trophy Points:
    475
    #7
    Don't have any real proof, but it looks like this:

    foreach ($stmt as $row) {
    ...some content
    }

    outperforms this:

    while ($row = $stmt->fetch()) {
    ...some content
    }

    At least in my case. Any validity to this?
     
    qwikad.com, Aug 24, 2024 IP
  8. Alex10071988

    Alex10071988 Peon

    Messages:
    6
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    3
    #8
    Pour ma part cela a été très rapide, et très fluide bravo!
    Alex
     
    Alex10071988, Aug 25, 2024 IP
    qwikad.com likes this.