Does the lightning bundle elements (html/xml, css, js) gets stored in salesforce servers in their individual native formats and served back to clients in the same format per request ?


is there any other steps / process happening on the salesforce server side ?

I've seen some notes on the lightning docs that SF uses Google Closure to compile the lightning JS files but no other info beyond that..

It will be interesting to understand what happens when we create / save a lightning bundle

1 Answer 1


Here is the info i gathered from one of the session

1.The Server creates Java objects from component XML

2.Components are Serialized to JSON

3.The client creates JS component instances

4.The JS components create DOM elements

XML---> JAVA--> JSON--->JS--->DOM

So to answer you everything is stored as XML to begin with .There is not visibility to what happens under the hood .


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .