Jump to content

Website so Slowly when visit at first time


Ahmad
 Share

Recommended Posts

I'm building a site and i noticed that loading time is very slow when we enter the site address for the first time. It takes about 1 minute or more  just to start loading files and displaying the content. 

However, after that period it's very fast and everything is ok. Once the page(s) is/are loaded, i can refresh them quickly and without any delay.

any one faced like this problem? and what can i do to resolve it.

more details:

ProcessWire 3.0.80

hosted type: VPS

this message appear in admin dashboard: " Warning: your server locale is undefined and may cause issues. Please add this to /site/config.php file (adjust “en_US.UTF-8” as needed): setlocale(LC_ALL,'en_US.UTF-8');"

The site: http://almanassah.net

Link to comment
Share on other sites

Many of the images are taking a long time to load, for example,1021701976_1-1.1140x760.png takes 12.64 seconds.

You can add 

setlocale(LC_ALL,'en_US.UTF-8');

to your /site/config.php to remove that error. Use whatever locale is appropriate for you.

[edit]
You can use the browser dev tools > network tab to determine loading issue. It will help eliminate that issue should others exist.

Edited by rick
  • Like 2
Link to comment
Share on other sites

1 hour ago, rick said:

Many of the images are taking a long time to load, for example,1021701976_1-1.1140x760.png takes 12.64 seconds.

 

I agree with u, but the problem why it slowly when download the images, if u can see now i remove the slider it's the big images, now the website faster.

the really problem if u notice the logo it's take 1.1 minutes to full download, u can see the picture i attached. and the size of logo just 324 Byte.

 

 

2017-11-02_164219.jpg

Link to comment
Share on other sites

All of the resources, css, js, images, and fonts are taking quite a while to load.

What type of hosting service is this site using, shared?

I am not familiar with modernizer. Can you temporarily disable it and see if that helps any?

I'm just thinking out loud about eliminating a possible cause one at a time.

  • Like 1
Link to comment
Share on other sites

What DomContentLoaded mean?

and why it's talk 27 second in my website ? how can reduce it.

another question i notice my website doesn't showing any content until it finished load all content hidden. how can resolve that?

7 minutes ago, rick said:

All of the resources, css, js, images, and fonts are taking quite a while to load.

What type of hosting service is this site using, shared?

I am not familiar with modernizer. Can you temporarily disable it and see if that helps any?

I'm just thinking out loud about eliminating a possible cause one at a time.

i use vps

Link to comment
Share on other sites

 

10 minutes ago, Ahmad said:

What DomContentLoaded mean?

and why it's talk 27 second in my website ? how can reduce it.

another question i notice my website doesn't showing any content until it finished load all content hidden. how can resolve that?

i use vps

As far as the content not displaying until it loads, it might be due to your apear.js file. It appears that modernizer is not defined (since you removed it), and your plugins.js file is depending on modernizer.

  • Thanks 1
Link to comment
Share on other sites

Try to load JS+CSS without AIOM. It takes over 3 seconds to load... Also, load the Font Awesome fonts locally, not from remote.

First time to byte is abysmal: over 5 seconds (until ready for interaction: 9s).

pagespeed.PNG

  • Like 2
Link to comment
Share on other sites

1 hour ago, dragan said:

Try to load JS+CSS without AIOM. It takes over 3 seconds to load... Also, load the Font Awesome fonts locally, not from remote.

First time to byte is abysmal: over 5 seconds (until ready for interaction: 9s).

pagespeed.PNG

Thanks, i will try now.

if used lazy load it's resolve the problem ?

and how can active gzip? i tried to activate it in vps and by use htaccess but faild.

and what's the website u used to analytics of speed?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Similar Content

    • By angelo, italy
      Hi guys,
      I've always used WP but I want to swtich to PW. I'm not sure ....
      I'd like to know if it's possible to create a website for an online photo contest.
      The participants of the competition could create their own account, in which they upload their photos. The photos uploaded remain visible only to themselves and the judges.
      From their account they can make the "entrance fee" payment.
      The judges of the competition can create their own account... entering they see the photos of the participants and vote photos
      At the main page I imagine the title of the competition, a button to read the regulation, and a button to register.
      The website should be in Italian and English.
      Thank you!!
       
       
    • By cosmicsafari
      Hi all,
      I have been asked by a client whether we can setup load balancing for their existing Processwire site.
      From my investigations on Google and within these forums, it definitely seems possible but as a newbie with a basic understanding of the subject im a bit lost.
      Does anyone know of any existing tutorials for settings up load balancing with PW?
      What items would need to be changed on their current stand alone install, is there a list of best practices worth consulting etc?
      As I understand it we would need to have some sort of copying mechanism (rsync script most likely) in order to make sure any uploaded assets are shared between the main server and the fallback ones, other than that im not sure what else would need to be ammended.
      Any thoughts/help would be greatly appreciated.
    • By Mobiletrooper
      Hey Ryan, hey friends,
      we, Mobile Trooper a digital agency based in Germany, use ProcessWire for an Enterprise-grade Intranet publishing portal which is under heavy development for over 3 years now. Over the years not only the user base grew but also the platform in general. We introduced lots and lots of features thanks to ProcessWire's absurd flexibility. We came along many CMS (or CMFs for that matter) that don't even come close to ProcessWire. Closest we came across was Locomotive (Rails-based) and Pimcore (PHP based).
      So this is not your typical ProcessWire installation in terms of size.
      Currently we count:
      140 Templates (Some have 1 page, some have >6000 pages)
      313 Fields
      ~ 15k Users (For an intranet portal? That's heavy.)
      ~ 195 431 Pages (At least that's the current AUTOINCREMENT)
       
      I think we came to a point where ProcessWire isn't as scalable anymore as it used to be. Our latest research measured over 20 seconds of load time (the time PHP spent scambling the HTML together). That's unacceptable unfortunately. We've implemented common performance strategies like:
      We're running on fat machines (DB server has 32 gigs RAM, Prod Web server has 32gigs as well. Both are running on quadcores (xeons) hosted by Azure.
      We have load balancing in place, but still, a single server needs up to 20 sec to respond to a single request averaging at around about 12 sec.
      In our research we came across pages that sent over 1000 SQL queries with lots of JOINs. This is obviously needed because of PWs architecture (a field a table) but does this slow mySQL down much? For the start page we need to get somewhere around 60-80 pages, each page needs to be queried for ~12 fields to be displayed correctly, is this too much? There are many different fields involved like multiple Page-fields which hold tags, categories etc.
      We installed Profiler Pro but it does not seem to show us the real bottleneck, it just says that everything is kinda slow and sums up to the grand total we mentioned above.
      ProCache does not help us because every user is seeing something different, so we can cache some fragments but they usually measure at around 10ms. We can't spend time optimising if we can't expect an affordable benefit. Therefore we opted against ProCache and used our own module which generates these cache fragments lazily. 
      That speeds up the whole page rendering to ~7 sec, this is acceptable compared to 20sec but still ridiculously long.
      Our page consists of mainly dynamic parts changing every 2-5 minutes. It's different across multiple users based on their location, language and other preferences.
      We also have about 120 people working on the processwire backend the whole day concurrently.
       
      What do you guys think?
      Here are my questions, hopefully we can collect these in a wiki or something because I'm sure more and more people will hit that break sooner than they hoped they would:
       
      - Should we opt for optimising the database? Since >2k per request is a lot even for a mysql server, webserver cpu is basically idling at that time.
      - Do you think at this point it makes sense to use ProcessWire as a simple REST API?
      - In your experience, what fieldtypes are expensive? Page? RepeaterMatrix?
      - Ryan, what do you consider as the primary bottleneck of processwire?
      - Is the amount of fields too much? Would it be better if we would try to reuse fields as much as possible?
      - Is there an option to hook onto ProcessWires SQL builder? So we can write custom SQL for some selectors?
       
      Thanks and lots of wishes,
      Pascal from Mobile Trooper
       
       
    • By henri
      Hi Guys, 
      I am new to processwire. I have to move a proceswire web to another server. How do i do that??? copying all the files doesnt seem to do the trick. I am presented with a very very old version of the website. What do I do wrong??
    • By Sabrina
      Hi,  
      I would like to start tracking my website visitors with Leady software. Searched the forum for similar discussion yet did not find the right answer. Could you please tell me how can I add their javascript to my website? Is there any step by step guide available?
      Any help appreciated. 
×
×
  • Create New...