We offer professional Design/Code Customisation and Website Optimisation Service Request Customisation
  • Status: Waiting on customer

Ticket #13728 - SVG not in html but external files


Is it possible that the svg code was not in the source of html and was included as a separate file? In the attachment, an example svg code about what I mean

svg.png (100.2 KiB)

This ticket does not depend on any other tickets.

Marek (marek) 11 Feb 2019, 21:15

Hi, Piotr.
What's wrong with SVG code in the source of HTML?

Piotr Pluta (piotrp321) 12 Feb 2019, 09:41

Html is to big ......

Browser developers recommend that pages should contain fewer than approximately 1500 DOM nodes. The tree with a depth less than 32 elements and containing less than 60 sub-elements / parent is optimal. A large DOM can increase memory utilization, extend the calculation of styles and cause costs

Marek (marek) 12 Feb 2019, 10:21

Yes, I see, I'll try to optimise it

Marek (marek) 12 Feb 2019, 12:36

Here is the result of our tests

Included Icons, DOM elements number - 1966
Removed Icons, DOM elements number - 1611

Yes, removing items reduces DOM elements number but that is definitely to critical

Piotr Pluta (piotrp321) 12 Feb 2019, 12:38

So what are you going to do?

Marek (marek) 12 Feb 2019, 12:43


Piotr Pluta (piotrp321) 12 Feb 2019, 12:45

I dont understand. You say that is definitely to critical and we doing nothing ?

Marek (marek) 12 Feb 2019, 12:49

sorry, there is a mistake. I wanted to wrote "but that is definitely not critical". But we can remove some svg icons like cryptocurrencies