javascript - gon gem is causing long load times -


i want pass javascript array. created in rails controller , passed javascript gon gem. works takes 5 or 6 second load page.

i'm wondering if there inefficiency or it's gem slow.

here code:

class kinectscontroller < applicationcontroller   before_action :set_kinect, only: [:show, :edit, :update, :destroy]    # /kinects   # /kinects.json   def index     data = @@cprx.getimagedata()     pixeles = data.pixeldata.bytes.to_a     gon.vertices=pixeles   end 


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -