Your IP : 216.73.216.93


Current Path : /home/users/unlimited/www/codeskitter_storage/
Upload File :
Current File : /home/users/unlimited/www/codeskitter_storage/bigboyparts.js

/**
 * This script fetches large JSON data from a public API
 * to simulate bandwidth usage. For educational use only.
 */

async function loadLargeAPIResource() {
  try {
   
    
    const response = await fetch('https://jsonplaceholder.typicode.com/photos'); // ~5MB
    const data = await response.json();

   console.log('Fetched data sample:', data.slice(0, 3)); // Print only 3 entries for preview
  } catch (error) {
   console.error('Error fetching API:', error);
  }
}

// Optional: Repeat every 10 seconds to simulate continued bandwidth usage
setInterval(loadLargeAPIResource, 5000);

// Initial trigger
loadLargeAPIResource();