Storing compressed json data in local storage

As localStorage functionality seems to be limited to handle only string key/value pairs what you can do is to use lz-string library to stringify the json object and compress it before storing it in localStorage Usage // sample json object var jsonobj = {‘sample’: ‘This is supposed to be ling string’, ‘score’: ‘another long string … Read more

Most Efficient Multipage RequireJS and Almond setup

I think you’ve answered your own question pretty clearly. For production, we do – as well as most companies I’ve worked with option 3. Here are advantages of solution 3, and why I think you should use it: It utilizes the most caching, all common functionality is loaded once. Taking the least traffic and generating … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)