0

I am currently using the Predis library for codeigniter. The redis server am using is version 3.2 the last stable and battle tested version. I have no problem saving, updating and deleting the datas in the redis. But my current problem now is, How to make a view file load faster?

Currently, I have a view file that displays the google map, it is being rendered by javascript. Hence, from google's gmap code. Is there a way to make this page load faster ?, which data should I save to redis to do so? am I supposed to save the whole body of the html and render it ?

sasori
  • 5,249
  • 16
  • 86
  • 138

1 Answers1

0

Redis can't make your view load faster, Google Maps uses a set of images and javascript to render the map (This is what makes an slow page loading), if you want to make this faster, use an image and link it to Google Maps site (Not embedding the map on the view).

  • do you have any sample to show?. I cannot visualize what image linking you’re trying to say – sasori Jun 07 '18 at 20:44
  • This is how make your link to be faster. – Daniel Doctor Jun 11 '18 at 00:11
  • what do you mean?...the map is rendered by javascript..i dunno what link are you talking about.. see this ? `https://developers.google.com/maps/documentation/javascript/adding-a-google-map` – sasori Jun 11 '18 at 00:15
  • If you want a faster loading page, don't embed the map. Javascript and images make the page slower (And the cuestion is to make the view load faster). – Daniel Doctor Jun 11 '18 at 00:16
  • but then the map am referring to contains dynamic data in the infow window of the markers in it..it cannot be loaded statically – sasori Jun 11 '18 at 00:17