{"id":189,"date":"2015-10-03T14:59:04","date_gmt":"2015-10-03T14:59:04","guid":{"rendered":"http:\/\/www.appsolem.nl\/?p=189"},"modified":"2021-01-30T10:17:23","modified_gmt":"2021-01-30T11:17:23","slug":"laravel-ajax-architecture","status":"publish","type":"post","link":"https:\/\/appsolem.nl\/?p=189","title":{"rendered":"Laravel\/blade ajax architecture"},"content":{"rendered":"<p>The current project has an architecture which uses a plain laravel\/blade template approach. In the future we want to replace this approach by a total ajax\/json approach to reduce server load and use the web application the same as a mobile client\/app.<\/p>\n<p>Now for the first release of our curren t project we are switching to an intermediate approach in which we are going to use a starting blade template which is going to use ajax calls to load the content\/pages. This has a lot of benefits regarding managing server load\/http requests, but it does require some extra coding.<\/p>\n<p>Another drawback is that forward\/backward buttons and direct urls functionality is lost. However,\u00a0by utilising\u00a0pushState &amp; popState javascript functions we can solve this.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The current project has an architecture which uses a plain laravel\/blade template approach. In the future we want to replace [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/appsolem.nl\/index.php?rest_route=\/wp\/v2\/posts\/189"}],"collection":[{"href":"https:\/\/appsolem.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appsolem.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appsolem.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appsolem.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=189"}],"version-history":[{"count":1,"href":"https:\/\/appsolem.nl\/index.php?rest_route=\/wp\/v2\/posts\/189\/revisions"}],"predecessor-version":[{"id":423,"href":"https:\/\/appsolem.nl\/index.php?rest_route=\/wp\/v2\/posts\/189\/revisions\/423"}],"wp:attachment":[{"href":"https:\/\/appsolem.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appsolem.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appsolem.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}