Tuesday 14 May 2019

php - website performance: from cookies to local storage

I created a plugin for a Wordpress website. Based on whether a user visited an (important) subpage, the plugin presents personalized information in the header of the website - on every page and pageload.



In the past I used a cookie that stored this information. But I learned this particular usage of cookies prevent caching and thus reduces my website performance



Now I am trying to implement the same functionality with local storage.




Question: Will the use of localstorage and presenting user specific information on the website via jQuery also slow down my website? Or will I see better performance of the website?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...