5 years, 4 months ago #2216
After importing few hundreds of properties to the website using a CSV Plugin, my whole website became so so slow! Horrible!
Please find enclosed the generated code by the home page, before, and after import.
Please help me finding a solution to this problem because if my website takes 30 seconds to load, its not gonna be possible to finish the project.
Please find enclosed the scripts before and after import also I am including my passwords for you to check what is going on.
Thanks,5 years, 4 months ago #2219
Screenshots from gtmetrix.com5 years, 4 months ago #22225 years, 4 months ago #2244
Can you please help me fix this issue ASAP because the website cannot run like that.5 years, 4 months ago #2265
I'm sorry for keep you waiting. Please give me FTP account to check this problem. I need it to edit some source code.
Kan Nguyen5 years, 4 months ago #22665 years, 4 months ago #2284
Base on my test on GTMetrix, it's much faster than yours http://prntscr.com/66ox2i
I'm not sure it's because of my connection or you have just improved your site, but I think it's ok for now.
There's two main reason for the slow loading site:
1. the slow response because of low sql statement.
2. the large html content
Base on my test, I think you don't have problem with 1. and it seems 2. is the main problem. The content you see is the properties data for gmap, it helps display all the properties on your map so I don't think I can reduce it. There's work-around: if your data isn't changing frequently, you can use some method to cache your html.
Let me know your idea about it.
KanNguyen5 years, 4 months ago #2285
i am using a cache plugin and thats what makes few (cached) pages fast. I just disabled it now you can test again and you will see a huge difference!
i also replaced home page with a lighter page but the problem is still the same. You can redo the test on gtmetrix.
but the problem again is that any other page takes forever to load and I am saying, any other webpage.
something is wrong for sure :/5 years, 4 months ago #2289
You're right. I test with a page with a page with a page having properties and another page having no properties ( the map is both on those page ). So I think the reason is the map and its data, or the point 2. on my previous answer.
I can help you reduce the map by:
- Option 1: only display the map base on the properties in that page, so the page like your Immobilier neuf will have no properties on map. It is something I wanted to add to this theme but I'm not develop it yet.
- Option 2: cache the properties data somewhere so it doesn't query database every-time it load. But it will have problem if your site changing data frequently.
Let me know your opinion.
Kan Nguyen5 years, 4 months ago #2292
I have no problem caching my data but what worries me is that even the other pages with no map are super slow. They are as slow as the other pages.
All these pages don't have a map.
Also I removed the map on my home page and it does not change anything.
Thanks5 years, 4 months ago #2319
I still think that the map's data is the problem. Because all your pages still have that map data ( it's a mistake in source code, the map data shouldn't be load there ). Please give me more time, till early next week. I'll make sure these pages doesn't have problem.
Kan Nguyen5 years, 4 months ago #2340
This is kind of a good news because at least we know where does the problem come from.
im looking forward to hearing from you soon.5 years, 4 months ago #2502
did you get the chance to fix that problem ?
thank you5 years, 4 months ago #2505
I'm manage to created the fix on my local version, I'm going to add it to your site to check the fix.
I'll edit your theme code using your hosting information.
Kan Nguyen5 years, 4 months ago #2506
I can't go to your site, do you have any problem with it? I'll wait till your site back to normal so I can check the modified code.
Kan Nguyen5 years, 4 months ago #2509
After I changed to my computer at home, I can go to your site, not sure why I can't access it with my work computer, maybe my home have stronger connection.
I updated your theme with the latest version, which have the updated code. I think it's better now on other pages but your home page doesn't show properties on map. I don't have this problem on my local. Please active the account 'nootheme' so I can check your admin. I want to disable cache to see if it's because of caching.
Kan Nguyen5 years, 4 months ago #25955 years, 4 months ago #2632
Have you modified the files ?
Thanks5 years, 4 months ago #2697
I installed the new version to your site, but I can't login with account nootheme to test it.
Please check the account for me.
Kan Nguyen5 years, 4 months ago #2719
nootheme account is working after test. All the other pages are loading faster than before after your fix. But the more properties I add in the system the worst it gets on the home page that contains the map.
Now the map doesn't load correctly and few icons are missing. Obviously the theme is showing its limits and needs to be optimized.
Do you guys have any solution because obviously the map is unusable over a certain number of properties. also I think that even the admin part gets slower because of this but I'm not sure.
Thanks Kan,5 years, 4 months ago #2774
I see there's limited with the number of property working on map.
The solution is changing the method to load the map. I think it'll be better if I use ajax to load the data, maybe with 50 ~ 100 properties at a time. It'll need time to develop this solution, so can you use caching for now and wait for me.
About the admin, we use normal WordPress method to create property as a Custom Post Type ( no Database level ). So if it's a real problem you can try optimize plugin like: https://wordpress.org/plugins/wp-optimize/
Kan Nguyen5 years, 4 months ago #2776
Well since I got this problem I thought about caching the map, but the issue now is that if I wanna cache the map I need to have the full data. Which is not happening now unfortunately. As you can see, the page never displays correctly because of missing points on the map.
i don't know how much time do you need to optimist he code...?
is it possible to make the home page like this meanwhile ?
thanks !5 years, 4 months ago #2777
What I mean is the search form over a photo5 years, 4 months ago #2838
You can do it with some custom CSS. The CSS is not difficult so I can help you. What you need is create a Row element with an image background, then add the search form in side it. After that, you can tell me how you want your design to change, I'll help you after that.
I don't have any schedule about the update yet so I can't tell you how much time we need.
Kan Nguyen5 years, 4 months ago #2840
You must be logged in and have valid license to reply to this topic.