
     import {onINP} from 'https://unpkg.com/web-vitals@4/dist/web-vitals.attribution.js?module';
     const LOGGER_TOKEN = '1781623606407.dc439018bf057f7968ec54268e52f02e5c4ffb2acdd7c086d50e45bdbca263f8';
     const LOGGER_URI = 'https://log.citymagazine.si/';
     const uri = location.pathname;
     onINP(({value, attribution}) => {
      
      //delete attribution.processedEventEntries;
      //delete attribution.longAnimationFrameEntries;

      console.log('INP:', value, 'Attribution:', attribution); // Za debug v konzoli
      // Pošlji v analitiko: include short-lived signed token to prevent simple forgery
      const payload = JSON.stringify({ value, attribution, uri, _token: LOGGER_TOKEN });
      navigator.sendBeacon(LOGGER_URI + 'log', payload);
     });
  