开发者

Can I add text to page-source dynamically in Ruby on Rails

开发者 https://www.devze.com 2023-01-02 07:41 出处:网络
I would like to add text dynamically to the page source in a particular view. I checked the IO streams, but couldn\'t find anything. Could you please provide some pointe开发者_开发问答rs.

I would like to add text dynamically to the page source in a particular view. I checked the IO streams, but couldn't find anything. Could you please provide some pointe开发者_开发问答rs.

Edit:

Thanks for the reply. I was trying to know how much time each part/component in a particular view takes to render and log it as part of the page-source. Please let me know if I am not clear enough.


You can use JavaScript to modify the Document Object Model (DOM) of a page after Rails has rendered the view. If you edit your question to make it more specific then we can give more specific answers.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号