Author Topic: Re: Slow Loading Website - Resolved  (Read 210 times)

0 Members and 1 Guest are viewing this topic.

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 318
    • Indian Trail Weather
Re: Slow Loading Website - Resolved
« on: February 21, 2020, 07:17:21 PM »
My website https://indiantrailweather.com is taking a very long time (~15 seconds) to load.  #-o  This was noticed about 2 days ago. Does anyone have similiar issues with their site loading very slowly. I'm using a version of the "alternative dashboard" (6.92). I have checked with Dreamhost and they advise everything is okay on their end. My mini website https://indiantrailweather.com/indexsmalldash.php  loads quickly so I suspect the issue is in the dashboard script. I have not made any changes to the dashboard script.

Appreciate any ideas that you might have. Thanks ...

 
« Last Edit: February 22, 2020, 02:19:19 PM by Breezy »
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline northernbrucewx

  • Member
  • *
  • Posts: 6
    • Northern Bruce Weather
Re: Slow Loading Website
« Reply #1 on: February 21, 2020, 08:39:14 PM »
Hi Breezy,

I didn't have any problems loading it from Canada. Less than 15 seconds for sure. Ironically, it took longer to load your small dash.

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 318
    • Indian Trail Weather
Re: Slow Loading Website
« Reply #2 on: February 21, 2020, 10:14:16 PM »
Thanks for checking. The loading speed has been sporadic. Sometimes it's lightning fast and other times it can take 15 seconds or so. Really weird. Thanks for checking and taking your time. Much appreciated!

Sent from my Pixel 3a using Tapatalk

Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2253
    • SouthEast Lincoln, NE Weather
Re: Slow Loading Website
« Reply #3 on: February 21, 2020, 11:20:44 PM »
It looks like your 'Menubar' is where the problem is, Breezy.  First try commenting out the 'NY' and 'USA' Extremes to see if that narrows down the issue.  If not, then keep using the same approach systematically until you've identified the problematic code.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 318
    • Indian Trail Weather
Re: Slow Loading Website
« Reply #4 on: February 22, 2020, 09:07:38 AM »
Hello Jerry,

Thanks for that suggestion. I have already tried that approach but no go. Also my "mini-home" option https://indiantrailweather.com/indexsmalldash.php uses the identical "Menubar", "Footer", and "Header" pages as the main page and loads without delays. Perhaps I should review my dashboard sections, select a section that is different than your site and comment those sections out (one at a time). It's strange as yesterday for about 20 minutes the website decided to load "lightning fast" without me making any changes. It then went back into the "slow loading" mode. This is a issue as folks aren't going to wait around for the "tea to boil". 
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 632
    • LexMAWeather
Re: Slow Loading Website
« Reply #5 on: February 22, 2020, 10:47:42 AM »
If I do

  view-source:https://indiantrailweather.com/

the place where I see a pause is just before

Code: [Select]
<!-- UV/Solar Script by Steve Fitzgerald - www.tylertexasweather.com -->
You might look to see if there is a way in that code to turn on some debugging output. No info is currently put out as to what it might be doing (fetches, etc.).


Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 318
    • Indian Trail Weather
Re: Slow Loading Website
« Reply #6 on: February 22, 2020, 02:18:52 PM »
The issue has been resolved. The include, "include_once('get-aqi-rss.php');",  in my dashboard script was the culprit. After commenting out this line the website loads like lightning. When fetching the data from aqi it slowed the loading down to a crawl. I've included the aqi script. Maybe someone can provide an idea to as why the lookup is slow. When searching the aqi url from a browser it is quite fast http://feeds.enviroflash.info/rss/realtime/147.xml

Special thanks to Steve Fitzgerald for his solution to this issue!  \:D/
Jeff

W7-64, Intel Z170A 16 GB RAM
Davis VP2 Plus, Davis Soil Moisture/Temp Sensors, Laser Snow Depth Sensor LR4/Fluke 414D