The previous code works perfectly when the data in the JSON is small and
therefore the contents in the output variable is also small,
but when the data is large and the output variable has a large string
takes time to execute on the iPhone (it works perfectly on Chrome, Firefox and Safari).
However if I remove the trigger method, the information is shown instantly, but of course without any styling applied: