However, you cannot package PHP, MYSQL, or any server-side applications in a
bookmark.
Any Web application that requires server access for data or application functionality will need to
have a way to pack and go: (1) use client-side JavaScript for application functionality, and (2)
package up a snapshot of the data and put it in a form accessible from a client script.
The application must be entirely self-contained. Therefore, every external resource the
application needs, such as images, style sheets, and .js libraries, must be encoded inside of the
main HTML file.
External resources that are referenced multiple times cannot be cached. Therefore, each separate
reference must be encoded and embedded in the file.
Images must be encoded as base64, though the conversion will increase their size by
approximately 33 percent.
The maximum size of a data URL in Mobile Safari is technically 128KB, though in actual
practice, you can work with URLs much larger, at least up to several megabytes. However,
performance of the Mobile Safari Bookmark manager suffers significantly when large amounts
of data are stored inside of a bookmark. Therefore, think thin for data URL??“based applications.
Mobile Safari has issues working with complex JavaScript routines embedded in a data URL
application.
Pages:
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265