❗️[важно] webp вместо png и аналитика

Open
#575 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript

Research direction

The issue names makemap.2gis.ru, the /2.0/js/?skin=light&pkg=full endpoint, PageSpeed Insights, and Google Tag Manager, but no repository files or tests. Reproduce the reported performance findings first, then define a scoped outcome for image formats, package selection, and analytics requests; the issue does not specify completion criteria.

Written by the indexing model from the issue text.

Description

при анализе сайта с вашей картой через PageSpeedInsights раздел Perfomance сильно снижается.
как минимум из-за того, что отдаваемые изображения вашим скриптом могли бы быть сильно компактнее, webp уже сильно распространён, почему бы не использовать его на выдачу

и также вопросы возникают с категорией Reduce unused JavaScript
если я использую https://makemap.2gis.ru/, то у меня формируется pkg=full, а не basic,

2gis.ru 185.5 KiB 66.1 KiB
/2.0/js/?skin=light&pkg=full&version=v3.7.4(maps.api.2gis.ru) 185.5 KiB 66.1 KiB

и также возникают уже не только у сервиса, но и у меня к тому, почему же кидаются запросы также на google

Google Tag Manager  75.4 KiB 38.6 KiB
/gtag/js?id=UA-158…-1(www.googletagmanager.com) 75.4 KiB 38.6 KiB

Ведь на https://dev.2gis.ru/ сказано, что вы в реестре и вроде российские разработчики и компания, а данные улетают в гугл, подключая на каждый сайт с вашими картами аналитику...
Да и неплохо бы присмотреться к leaflet, на котором вы базируетесь. А то там на сайте и логотипе упомянута украина 🤷🏼‍♂️

Dominant language
JavaScript
Stars
212
Forks
36
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 2gis/mapsapi

All issues in 2gis/mapsapi

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.