Re: App development - Lobby functionality optimisation Programming Mobile Development by jonathannweyer … like player count. If the lag happens mostly during peak times, load balancing across servers could also make a difference. Hope… Re: Java Coin Flip Program Programming Software Development by jassonadder …heads = 0 self.tails = 0 def flipCoin(self, times): for i in range(times): flip = random.choice(['Heads', 'Tails']) print(f… # Main program try: flips = int(input("How many times would you like to flip the coin? ")) flipper = … Re: Coin Flip (Python Newbie) Programming Software Development by jassonadder ….") This version should now properly flip a coin 100 times and track how many heads and tails you get. Also… Re: Is the Vision Pro worth it? Hardware and Software macOS by Reverend Jim I still get vertigo at times when sitting (like jumping and landing on the edge of a cliff) but at least I can't fall down and crack my head. Re: Coin Flip (Python Newbie) Programming Software Development by Dani > Presumably bumping every "coinflip" post to spam their URL Nothing wrong with that!! I'll take a trillion helpful posts if all someone wants in exchange is a free signature link back to their website (that only shows up for logged in members, so no SEO incentive). Re: Java Coin Flip Program Programming Software Development by Dani Better late than never! Thanks for your post. It looks like it's really helped a few people already. Re: Java Coin Flip Program Programming Software Development by Salem > It looks like it's really helped a few people already. Yeah, 4 new members with consecutive user ID's, smelling like sock-puppet accounts. Re: Java Coin Flip Program Programming Software Development by Dani > Yeah, 4 new members with consecutive user ID's, smelling like sock-puppet accounts. I realized that after I posted. I’m on my phone on the sofa so it wasn’t as easy to tell. Although I still can’t see the motivation. Edit: Nevermind. Perhaps they were trying to improve their member reputation/quality score?? (Won’t work because you need… Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by scope_2 Lazy loading enhances web portal speed by loading images, videos, or components only when needed. Add loading="lazy" to <img> and <iframe> tags for simple use. For advanced control, use libraries like Lozad.js or lazysizes. In frameworks like React, use React.lazy() and <Suspense>. Avoid lazy loading above-the-fold … Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by gediminas.bukauskas.7 Here is a problem: Blazor WEB application working in SSR mode performs partial update of the page after posting. JS initialization does not work in this case. It is difficult to find correct event for performing JS operations. Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by Dani … that allows them to perform the same Lighthouse test multiple times and get consistent answers. Something else I forgot to mention… about everything that could be done to improve page loading times. However, I do agree that this information might all be… How to Implement Lazy Loading for Faster Web Portals Programming Web Development by KamalDeepPareek How can lazy loading improve web portal performance by reducing initial load times and optimizing resource usage? What are the best techniques to implement lazy loading in images, components, and data fetching using JavaScript frameworks like React, Vue, and Angular? How does lazy loading impact SEO and user experience? Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by jkon … that allows them to perform the same Lighthouse test multiple times and get consistent answers. I am assuming that people perform… Re: What makes a technical E-commerce web standout? Programming Web Development by simplixi … in Africa access the internet via smartphones. - Optimize page loading times and navigation for a seamless shopping experience. **5. Payment Options… Re: What is the best possible way to protect my website? Hardware and Software Information Security by Ja sa bong Anyone who's smart will never use a website with an expired SSL certificate. It's very important to have this active on your website at all times. Re: Selling the house that I grew up Community Center Geeks' Lounge by Reverend Jim … to be too much (I did the round trip three times that summer to bring stuff home). Also with summers getting… Re: I'm Tired! How to Increase Social Media Followers Digital Media Digital Marketing by andrew_morgan Consistency and engagement are key! Post when your audience is most active (use insights to find peak times), and interact with followers through comments, DMs, and stories. Collaborate with influencers, use trending hashtags, and experiment with interactive content like polls and reels. Re: Show computer name on a label Programming Software Development by Salem > I tried that but I get this error Prove it - post some code. You won't believe how many times people claim "I've done X" only to find out many posts later that they haven't done X at all, or they managed to fumble it and do "Y" instead. Re: Need currency pound symbol before amount calculation Programming Web Development by Biiim …;input> Also a simple trick to format currency is times it 100 round it and divide by 100 eg: `Math… Re: Upgrade to Fiber internet Hardware and Software Networking by Reverend Jim …. I've had Bell come to my door a few times to get me to switch back and I told them… Re: Is linux your daily driver? Hardware and Software Linux and Unix by Reverend Jim I've tried loinux several times over the years on spare computers, virtual machines, and a Raspberry Pi. I gave up on all of them because it was too difficult to maintain. Now all I use it for is Live USB recovery tools. Re: Will iPhone 15 bring new updates? Programming Mobile Development by Ja sa bong Every new phone that is released always comes with a new upgrade and features that are added to the previous ones that have been in use. It is the only way they can actually get people to buy the new version of the phone. It doesn't matter if it's iPhone or android, the same thing is done with both of them. Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by Dani Hello, The easiest way to implement image lazy loading is by simply adding the `loading="lazy"` HTML attribute to `<img>` image tags. That will not load the image until it is about to come into view in the web browser as the user scrolls down the page. Something else that we do here at DaniWeb is to use the `async` and `defer`… Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by jkon The loading="lazy" HTML attribute-value pair was introduced in 2019–2020, so I would guess it will be safe to use after 2030–2035, except if you don't care about internet visitors and are targeting an intranet of a company where you control the browsers and their versions. Of course, lazy loading impacts SEO. Modern SEO has more to do … Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by Dani > The loading="lazy" HTML attribute-value pair was introduced in 2019–2020, so I would guess it will be safe to use after 2030–2035, except if you don't care about internet visitors and are targeting an intranet of a company where you control the browsers and their versions. According to [Can I Use](https://caniuse.com/?search=… Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by jkon Dani, in my small software company (we are only five people), we have a rule for the web: support it until the problem affects less than 1 in 200 users, or 0.5%. We waited 10 years for Internet Explorer to reach this threshold, and finally, in 2025, we no longer program new web apps to support Internet Explorer. This is a liberating moment for … Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by Dani The reason why I disagree with you is because I do not see a reason to not use a performance optimization that will benefit 96% of web users, and degrade gracefully and cause absolutely no side-effects for the remaining 4%. What is the harm in using it in production *now*? I especially disagree with you because this is a performance optimization… Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by Dani > On "Can I Use," IE was supposedly "dead" in 2013 I'm not sure what you mean by that? I see it saying that IE is still in use by 0.4% of web users. It is up to *you* to determine if that is an acceptable loss. I don't think they make that determination for you because, as pointed out in my previous post, a performance … Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by jkon In reality, the usage of IE is lower than 0.4%. In some categories of web apps, it's around 0.1%, while in others, it's about 0.2%. That is why we decided to stop supporting IE from 01/01/2025. If it were above 0.5%, you shouldn’t even consider introducing something without first testing it in Internet Explorer. I can't understand how any app can … Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by Dani I think perhaps we are misunderstanding each other. Of course, it's important to not introduce any breaking functionality for any percentage of users. However, what is the harm in adding `loading="lazy"` to an existing web app? 96% of users will experience a performance improvement. The other 4% of users will have no negative …