Author Topic: loading speed  (Read 1268 times)

0 Members and 1 Guest are viewing this topic.

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
loading speed
« on: August 30, 2020, 12:01:42 AM »
Does anyone have any tips on how I can make my website load faster?

http://www.cospringsweather.com

Thanks,
Ryan




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera

Offline the beteljuice

  • the beteljuice
  • Forecaster
  • *****
  • Posts: 316
    • test site
Re: loading speed
« Reply #1 on: August 30, 2020, 12:50:34 AM »
Code: [Select]
<!-- nws-alerts.php - V1.43 - 14-May-2019 -->
<!-- 16 unique Zone entries found.

<!-- 10:36:04 -->
<!-- Error: Operation timed out after 2001 milliseconds with 0 bytes received -->
<!-- Source: https://alerts.weather.gov/cap/wwaatmget.php?x=COZ222&y=1 -->
<!-- non XML source: https://alerts.weather.gov/cap/wwaatmget.php?x=COZ222&y=1 -->
<!-- HTTP stats:  RC=0 dest=23.44.12.15 port=443 (from sce=50.62.177.45)
      Times: dns=0.004 conn=0.042 pxfer=0.130 get=1.871 total=2.001 secs -->
<!-- header type='' -->
<!-- First attempt in getting preliminary URL failed -->
<!-- XML source: https://alerts.weather.gov/cap/wwaatmget.php?x=COZ222&y=1 -->
<!-- HTTP stats:  RC=200 dest=23.44.12.15 port=443 (from sce=50.62.177.45)
      Times: dns=0.004 conn=0.042 pxfer=0.133 get=0.199 total=0.332 secs -->
<!-- Second attempt successful -->

<!-- Total process time: 8.9496 seconds -->
That, and reloading cam pic every 40ms ...
Imagine what you will KNOW tomorrow !

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 843
  • #conligwx
    • conligwx.org
Re: loading speed
« Reply #2 on: August 30, 2020, 04:11:58 AM »
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: loading speed
« Reply #3 on: August 30, 2020, 04:59:52 PM »
Thanks for the response, but I have not a clue as to how to fix.




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera

Offline SteveFitz1

  • Forecaster
  • *****
  • Posts: 521
    • Tyler Texas Weather
Re: loading speed
« Reply #4 on: August 30, 2020, 05:31:09 PM »
Ryan,

Are you running a CRON job for nws-alerts.php every 8 minutes or so (looks like your cache time is 10 minutes)? When I bring up your page, it shows between 4 and 6 seconds to process your nws-alerts zones. If you run a CRON job that updates the cache every 8 minutes, the results will always be in the cache and your page should load 4-6 seconds quicker.

Steve

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: loading speed
« Reply #5 on: August 31, 2020, 12:13:29 AM »
Ryan,

Are you running a CRON job for nws-alerts.php every 8 minutes or so (looks like your cache time is 10 minutes)? When I bring up your page, it shows between 4 and 6 seconds to process your nws-alerts zones. If you run a CRON job that updates the cache every 8 minutes, the results will always be in the cache and your page should load 4-6 seconds quicker.

Steve

Hi Steve,

I run task scheduler.




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera

Offline cospringswx

  • Forecaster
  • *****
  • Posts: 4136
    • Colorado Springs Weather
Re: loading speed
« Reply #6 on: November 09, 2020, 01:44:48 PM »
Can anyone help solve this issue?




Ryan 

Colorado Springs, CO
www.cospringsweather.com
Davis Vantage Vue
Weather Display Software
Amcrest HD IP Camera

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: loading speed
« Reply #7 on: November 10, 2020, 10:04:21 PM »
What do you have your NWS cron set, time wise? Also, like stated before, how often are you uploading your webcam?
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

Offline ALITTLEweird1

  • Mark
  • Global Moderator
  • Forecaster
  • *****
  • Posts: 923
    • North Bend Weather
Re: loading speed
« Reply #8 on: November 10, 2020, 10:16:11 PM »
Also,  your streaming your webcam live on your homepage. Why not change that to a static image and have your live stream on another page?
"Nature can do without man, but man cannot do without nature."


Software: WeatherDisplay
Hardware: Davis VP2 + VP2 Solar + VP2 UV + Lightning Detector + Logitech Webcam + Soil temp + Soil Moisture

Offline SoMDWx

  • Forecaster
  • *****
  • Posts: 1019
    • Southern Maryland Weather
Re: loading speed
« Reply #9 on: November 11, 2020, 07:57:27 AM »
After looking at the waterfall results from Gtmetrix, it appears that your streaming video is taking a ton of time before the site fully loads. Would concur with ConligWX post above that you place a static image of the latest camera view on the main page then have another page to actually show the streaming video....

 

anything