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

0 Members and 1 Guest are viewing this topic.

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • 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: 11
    • 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: 325
    • 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: 2578
    • 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: 325
    • 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: 949
    • 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.).

https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline Breezy

  • Indian Trail Weather
  • Forecaster
  • *****
  • Posts: 325
    • 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

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 440
    • Penn Lake Weather
Re: Slow Loading Website - Resolved
« Reply #7 on: March 27, 2020, 11:13:23 AM »
Hi Breezy!
It's been a while, I hope all is well.

And thanks Mr. Fitzgerald for that script revision. I have been having a slow start up for a while now -- 10 to 12 seconds sometime. I put in the script posted and now it's like 3 to 4 seconds. I use to fall asleep waiting for it to load.

Thanks!!!!!!!!!!!

Offline mickopla

  • Forecaster
  • *****
  • Posts: 358
    • Waterford City Weather
Re: Slow Loading Website - Resolved
« Reply #8 on: March 29, 2020, 09:24:03 AM »
My website is slow to load too lately. About 20 seconds to complete all processes. I'm not sure if the above fix will work for me as i don't use Air Quality on my site. Any ideas how to fix?

https://www.waterfordcityweather.com/

Offline jmcmurry

  • Jim McMurry
  • Forecaster
  • *****
  • Posts: 528
  • Davis Vantage Pro 2 Plus Wireless.
    • Juneau County Weather
Re: Slow Loading Website - Resolved
« Reply #9 on: March 29, 2020, 10:13:36 AM »
There are tools such as https://www.webpagetest.org/ that can help you determine what is taking a long time to load.

Forum Search and Google Can be Your Best Friends

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 440
    • Penn Lake Weather
Re: Slow Loading Website - Resolved
« Reply #10 on: March 29, 2020, 11:04:45 AM »
Hi jmcmutty,

Thanks for the information!
Over the years I have tried several of these sites and i bet they are great for those who know how to use them, I will admit, the results of these tests are usually way above my skills.
An example - using my domain in your test page I see at the end an X for Effective use of CDN, scrolling to the bottom of the test results "Use a CDN" the last sentance "The current list of known CDN's is here", clicking on that gives me a no return in my brain, I haven't a clue of what that page means.
I also, probably in the last yearr, looked at ways to "compress" and "Use Progressive JPEGs" most of what I found looking around, were mostly places that you send your pics to, and then they convert them for you for a price and or other information (that I am not willing to give). I might be a knucklehead with a lot of this stuff, but being a hobbyist, I do know that free is better than cheap. So I think I did find a place, a program, or some kind of free app, that would do this for me and converted, I guess most of my image files, cause I see I have some left. Now it looks like my memroy has to kick in to try to figure out how I did it before and tyr again, lol.
Last example is "Leverage browser caching of staic assets"  ??????????????????

Listen, Im just trying to point out, that some of us try to understand and learn. In the recent past with all the talk about http to https, i struggled through that and I believed I succeeded, but only with the help of all the contributions from the people on this forum. Now the next endevour seems to be that you will need to get your sites speed up -- or else!

Again thanks for you help!

Offline yamiacaveman

  • Forecaster
  • *****
  • Posts: 440
    • Penn Lake Weather
Re: Slow Loading Website - Resolved
« Reply #11 on: March 29, 2020, 11:08:15 AM »
Oh. I forgot -- mickopla, I have tries your site several times and for me me the longest time was 4 secs for your page to load.

Offline mickopla

  • Forecaster
  • *****
  • Posts: 358
    • Waterford City Weather
Re: Slow Loading Website - Resolved
« Reply #12 on: March 29, 2020, 04:34:15 PM »
Oh. I forgot -- mickopla, I have tries your site several times and for me me the longest time was 4 secs for your page to load.

Seems to be loading faster now. Definitely an improvement on the last few weeks. Cheers for checking for me

 

anything