All Questions
Tagged with performance html
1,752
questions
0
votes
0
answers
22
views
image performance optimization in the Shopify Theme
I am trying to write img HTML tag which should optimized for performance and responsive for all devices. I applied the sizes, widths property to the img tag. Below is my liquid code
{%- assign widths =...
-6
votes
1
answer
33
views
What is Performance based on? [closed]
What is website Performance based on? If SEO and the other categories are all above 90%, how can the performance be 35%? I tested a website and all the categories ranked high except for Performance on ...
0
votes
0
answers
36
views
Image preloading does not have an effect
I'm working on a website with quite poor LCP (around 5-6 seconds according to PageSpeed). And I was tasked with improving it. After taking a look at networking tab I saw that the browser first loads ...
0
votes
0
answers
46
views
Does keeping template strings in my DOM makes it slower?
If I use <script type="text/template"></script> or <template> tag excessively to define large template strings in my DOM, does it make my DOM slower, considering it makes ...
0
votes
0
answers
99
views
Is there any relation between load delay and render delay on Largest content paint on Lighthouse?
So I was trying to optimize image loading. As per the lighthouse report, the Largest Contentful Paint element is in red mark and needs improvement.
So The data looked like this:
As you can see the ...
0
votes
1
answer
67
views
How can I improve the load speed on Iframe embedded videos?
Hello lovely people on stackoverflow.
Am using html and css in Dreamweaver to create a website.
I am sourcing videos from a television archive and embedding them onto my website using iframe. It ...
0
votes
1
answer
33
views
How do you switch one image to another using JavaScript?
I have been looking into different ways to use JS to switch from one image to another. I tried using classList.toggle and now eventListener method, which I thought will work just fine but the button ...
2
votes
1
answer
63
views
How can I set light/dark theme with Fast Web Components?
I am using https://www.fast.design/docs/components/checkbox
in a simple HTML page, but it seems that the default theme is dark ... so "white text" on a "white background" : it's ...
0
votes
0
answers
27
views
Content-Security-Policy meta tag preventing preload scanner to work properly in Chrome
In the html body some stylesheets and javasripts are linked, i would expect the main parser to pause the parsing/rendering till each is loaded and executed, but in the meantime the preload scanner to ...
0
votes
0
answers
34
views
Angular failed to load image
I used images in my project, I changed the HTML structure and converted all the images in the assets folder. Use WebP images
And they all work well when the page loads.
BUT, when switching to another ...
0
votes
0
answers
53
views
Why is my event listner so slow and glitchy?
im pretty new to full stack development and im making a hover drop down. im not sure why but when there is nothing but the dropdown portion it works very fast but when i add the rest of the page its ...
0
votes
0
answers
20
views
Is there a perfomance difference between insertion and geometry change to the DOM?
Hey I am working on a Drag and Drop Editor and came to this question. Right now if I drag an element I insert the element and an slot underneath. The slot is basically just to visualize where the ...
-3
votes
1
answer
177
views
What's the fastest way to create an extremely large number of elements in JavaScript?
I need to create about 1 million rows for a table, and I'm trying to figure out the fastest way to do it. I'm obviously not appending them all to the DOM; I just store them in an array. But even just
...
0
votes
0
answers
59
views
Is it possible to download a part of a page's html code so you can scrape it with python later?
I'm creating a python web scraping project where I return the ranking data of any junior tennis player from this website : site
There is a selector at the bottom where you can choose how many people ...
0
votes
1
answer
96
views
JS executes fine in vscode but doesn't execute in github, instead receive "Failed to load resource: the server responded with a status of 404 ()"
I've been trying to integrate PartyTown, a framework that will use web workers to execute Javascripts instead of the main thread, and while PartyTown works perfectly fine in the live-server hosted in ...