Are you using all the json data on each page? How big is the json and what is the actual loading time?
Laravel parsing JSON to Vue component makes website really slow
Parsing a big JSON to a Vue component makes our website really slow.
So the case is, we are delivering our menu items through AppServiceProvider to a header Vue component in each page (the query is cached but this is not the issue/point), i noticed, parsing the data to the component as a JSON it makes our website really slow, this happens because the JSON is big (removing the parsing JSON make the website fast again), we want the data to be accessible as fast as possible, we do not want it to be an API call because there might be a delay in getting a response from the server.
Is there any workaround to pass JSON data to a Vue component but not make the website slow, has anyone faced this issue? any ideas?
Laravel Version: 5.8
Please or to participate in this conversation.