摘要 |
A method, non-transitory computer readable medium, and apparatus that obtains an original menu associated with a web page requested by a client computing device. The original menu comprises at least a plurality of URLs, each comprising one or more fragments, and a plurality of titles, each comprising one or more words. A unique index for one occurrence of each of at least a subset of the fragments and the words is generated. At least one dictionary comprising the generated indices associated with a corresponding one of the fragments or the words is generated. A modified menu is generated by replacing each occurrence of each of the at least a subset of the one or more fragments and the one or more words of the original menu with a corresponding one of the unique indices. The modified menu and the at least one dictionary are sent to the client computing device. |
主权项 |
1. A method for compressing menus, the method comprising:
obtaining, with a menu management computing apparatus, an original menu associated with a web page requested by a client computing device, the original menu comprising at least a plurality of uniform resource locators (URLs), each comprising one or more fragments, and a plurality of titles, each comprising one or more words; generating, with the menu management computing apparatus, a unique index for one occurrence of each of at least a subset of the one or more fragments and the one or more words; generating, with the menu management computing apparatus, at least one dictionary comprising the generated indices associated with a corresponding one of the subset of the one or more fragments or the one or more words; generating, with the menu management computing apparatus, a modified menu by replacing each occurrence of each of the at least a subset of the one or more fragments and the one or more words of the original menu with a corresponding one of the unique indices; and sending, with the menu management computing apparatus, the modified menu and the at least one dictionary to the client computing device. |