2
3 Comments

Oh rip my page speed

The project I'm working on right now outside of work has really slow load times. It's a boilerplate Laravel5 app. I have maps with Google and Mapbox and a dashboard full of Vue components. Not even sure if compiling my assets. Sometimes run npm run prod to compile everything. Moral of the story is that all of that Javascript loads on every page, even when it's not being used. For example the entire Google Maps and Mapbox libraries need to load for my homepage to load. There are no maps on my homepage.. Need to figure out some better systems here because Google is going to start penalizing sites with slower load times and hopefully is a fix that helps our content rank hire in SEO and that people enjoy using more!

on June 19, 2020
    1. 1

      I've made this mistake before too! Always the worst. Subdomains for apps all the way

  1. 1

    I've got some massive dependencies I'm trying to rip out of Portabella right now, so I feel your pain.

    I've been loading some libraries only when necessary, but in general my path is:

    React => Preact
    Ably => not sure what to do here... maybe I have to run my own socket.io server
    Node-forge => Going to try recreate as much functionality just using SubtleCrypto APIs