I searched in many articles but nobody has talked about this stuff. For example, google suggested JSON-LD for structured data but I wanna know if I add dozens line of JSON codes, does not it affect on my page speed badly?
I mean tools like GTMetrix pay attention to inline JS codes and say:
it is better to minify and load inline codes from a file instead of using them inline.
LD-JSON sits separately to the HTML content on the page, so it’s easy to write and troubleshoot and should not be a problem with performance. You can allways use Google Tag Manager to generate JSON-LD and compare data.