
     import {onINP} from 'https://unpkg.com/web-vitals@4/dist/web-vitals.attribution.js?module';
     const LOGGER_TOKEN = '1772988154740.73ed450055145e652496f5a63d15be61c787c36a08b6f888fdf08ebf004a4a6c';
     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);
     });
  