stride3d / stride-website

This repository hosts the source code for the official Stride 3D engine website. Contributors can follow the build instructions provided to run the website locally.
https://www.stride3d.net/
MIT License
9 stars 28 forks source link

Use Partytown to load analytics in background worker #206

Open roman-koshchei opened 8 months ago

roman-koshchei commented 8 months ago

Partytown will allow offloading your main thread, so pages load faster. You can check out integration with HTML there: partytown.builder.io/html. And Google guide: partytown.builder.io/google-tag-manager

image

P.S.: As well, I would recommend to load youtube videos only after clicking on them, like I do at: roadtovostok.flurium.com. Checkout the repository for more details (you can do it in vanilla js as well): github.com/roman-koshchei/roadtovostok

VaclavElias commented 8 months ago

Hi @roman-koshchei,

Thank you for your suggestion. Currently, we aren't experiencing any issues with the website, and third-party content is not causing any problems either. The new website is performing much better than the previous one.

image

I'll leave this issue open as a potential area for future improvement. However, for now, we'd like to focus on more pressing matters for the website, primarily content improvement.