• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 11.02.19, 21:14
  • Opened by: Piotr Pluta
  • Closed by: Marek
  • Closed on: 01.03.19, 16:21
  • Reason: Closed
  • Comment: Glad to help!

Ticket #13728 - SVG not in html but external files

Hello,

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

Comments

Marek 11 Feb 2019, 21:15

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

Piotr Pluta 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 12 Feb 2019, 10:21

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

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 12 Feb 2019, 12:38

So what are you going to do?

Marek 12 Feb 2019, 12:43

No

Piotr Pluta 12 Feb 2019, 12:45

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

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