brianpat VIP
Total posts: 211
24 Фев 2015 14:53

Hi,

Not sure if anyone has noticed this or not. cobalt is using the following js file for its geo field and inclusion of this file causes the site very slow

http://js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js

I had installed jch optmize pro , but I have to exclude the above file for map to work.

If I dont include the above file , theni wont have map to work but the page size significantly gets reduced to 378kb from 1.23mb

That means it is concluded that the above file causes slowdown of site.

can anyone suggest how can this file be optimized either by any means

or is there any alternative to this?

Последние изменения: 04 Март 2015


Sergey
Total posts: 13,748
27 Фев 2015 05:10

Just turn Initialize position parameter off in geo field.


brianpat VIP
Total posts: 211
27 Фев 2015 10:45

Sergey Just turn Initialize position parameter off in geo field.

I did , but that didn't help. The page size is same at 1.23mb.


brianpat VIP
Total posts: 211
27 Фев 2015 10:55

Also is it possible not to display the map , but all other things? I would love to display the map, but the map itself is taking 80% of total page size. Hence for the sake of page speed, I am thinking if it will be possible to exculde the map, but display the google ajax place search text box and distance parameter.

It would have helped if jch optimize pro could have optimize the geoip2 file which could have helped reducing the page size.


Sergey
Total posts: 13,748
02 Март 2015 11:49

brianpat Also is it possible not to display the map , but all other things?

Yes, there are parameters in goe field.

brianpat It would have helped if jch optimize pro could have optimize the geoip2 file which could have helped reducing the page size.

It is not our file. It is 3DP service.


brianpat VIP
Total posts: 211
02 Март 2015 18:33

what parameters need to be set?


brianpat VIP
Total posts: 211
02 Март 2015 18:46

I dont want to show map in advanced search, but would like to show on all other places. Is it possible? This will decrease the page size considerably.


Sergey
Total posts: 13,748
03 Март 2015 12:01

brianpat I dont want to show map in advanced search

2015-03-03_19-55-17


brianpat VIP
Total posts: 211
03 Март 2015 12:50

Hi Sergey,

I know this option, but with this option the whole field is blank. What I want to achieve is that: The map is consisting of the following: Distance Radius - I want this available in filter Text box - that shows to enter name of the city - which is also an ajax google search - I also want this Then the last thing is the map that is shown - I dont want this map to be shown - this is taking lots of space and increasing page size

Is it possible?


Sergey
Total posts: 13,748
04 Март 2015 06:41

Distance search cannot work without map unfortunately. I do not see how that would technicaly be possible.

Работает на Cobalt