Get started

A lightweight Javascript that improves the end user experience and offloads servers. It enables decentralized content delivery and smart cache usage.

  • 1Remove any other lazy loading lib
  • 2Allow Greta to load CORS headers
  • 3Paste the script in the top of the head tag
  • <html>
    <head>
    <script src="https://cdn.greta.io/greta.min.js"></script>
    
    </head><body>
    ⌘C

    How it works

    As soon as Greta script is loaded on your site it starts observing the network by listening on all ajax/xhr requests. The sooner the script is loaded, the more requests will be analysed by Greta, this is why it's crucial to load Greta script first thing in the <head> tag of your site. The script will then process all requests it can find and do what is best for it in terms of where and when to load.

    Find best possible route

    Our algorithms then picks the best candidate between Greta cache, Greta peer-to-peer network along with all your avilable servers. When calculating the route Greta is analysing your network in real time and combing it with the knowledge from all network data going through Greta to pick the best option. This leads to server offload and faster response times for your users.

    Smarter loading

    Our script is also smarter at deciding when to load. Greta operates with automatic lazy loading, which means that Greta will request assets once they're in the lazy loading scope of the page, rather than bulk load everything at page load. This reduces the amount of unneccessary requests as well as increases the user experience of the site.