Jump to content

Why my web page cause crash in Chrome and slow in Firefox?


eaglehopes
Go to solution Solved by eaglehopes,

Recommended Posts

I used my own php code to build links to my blog pages in my website. I put all links inside a div container and use horizontal scrollbar to access to all.

However, when number of blog pages increases(over 100), page loads links but :

1. Chrome crashes when I changed and come back to the tab of my webpage

2. Firefox does not crash but, it starts slow scrolling

There is not any php or javascript errors in browser's console. Can anybody help me what is the problem of my page design? Thanks.

My problematic web page is : http://enginery.freecluster.eu/index.php?page=blog&subblog=CP&fin=LINUX&blogPage=1.html#BlogHeadTitle

 

Link to comment
Share on other sites

  • 4 months later...
  • Solution

I found its reason  : my php code bombards the page to load more than 100 links having their own styles when I chose sub blog page. Then this loading cause some kind of memory leak in my google chrome(TM) browser  and eat my whole memory so that it crashed(When I show processes after crash, there are lots of chrome crash-pad processes, if I am lucky to behave fast before complete freeze, I went into tty1 and had to kill chrome by script). 

The solution I found is "pagination". I get all links of pages from PHP to javascript and put them only three of them to make the page load faster and crash free!  I am marked this as a solution. The lesson I learned was "do not trust browser's memory control, do it your own way while desining your web page!" 

Link to comment
Share on other sites

  • 1 month later...

Your webpage seems to face performance issues due to a high volume of links within a div container. To tackle this, consider lazy loading, pagination, and code optimization. Browser DevTools can help identify bottlenecks. Regular monitoring and adjustments will ensure a smoother user experience.

  • Great Answer 1
Link to comment
Share on other sites

22 hours ago, AngrySheep said:

Your webpage seems to face performance issues due to a high volume of links within a div container. To tackle this, consider lazy loading, pagination, and code optimization. Browser DevTools can help identify bottlenecks. Regular monitoring and adjustments will ensure a smoother user experience.

I added pagination to my website and it solves lots of bottlenecks! But I do not know what is "lazy loading", I will look about it and try to apply it. Thanks AngrySheep for comment.

Link to comment
Share on other sites

Woow, "lazy loading", "eager loading"... there have been different techniques for developers to use.  I haven't heard anything about them until AngrySheep's great post!

I applied "lazy loading" to some images in my webpage's page that has high and big images. Result is that users will have better experience(ie. faster and smoother) while loading it.

Link to comment
Share on other sites

I must share my experience about "lazy loading" since I experienced one of its disadvantage : when I put two images inside a container and place them using "position:relative"( to put them on each other with some overlap) , then lazy loading cause misbehaviour;  they positioned on the same point(complete image eclipse occured :) ) ( but not always i can see, at least not after the first run). So, it must be used carefully.

Link to comment
Share on other sites

On 8/24/2023 at 6:32 PM, aarti789 said:

Well, there are some steps that you can take to fix these issues. 

1. You can try for optmizing link rendering.  

2. You can use developer tools of browser to improve the performance.

3. Disabling extensions of browser.

4. Lazy Loading

Thanks

thank you!

Link to comment
Share on other sites

On 8/24/2023 at 5:48 PM, eaglehopes said:

I must share my experience about "lazy loading" since I experienced one of its disadvantage : when I put two images inside a container and place them using "position:relative"( to put them on each other with some overlap) , then lazy loading cause misbehaviour;  they positioned on the same point(complete image eclipse occured :) ) ( but not always i can see, at least not after the first run). So, it must be used carefully.

Use JavaScript to arrange the images after they have been uploaded.

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.