Overbloat
See original GitHub issueI’m really curious why it’s necessary for just a regular user to load all this “apos” loading code. Seems alot like unnecessary bloat-code. Call me a control freak but after running several lighthouse tests there is a significant impact on speed just based on these unnecessary imports.
<script>
window.apos = {"prefix":"","csrfCookieName":"apostrophecms.csrf"}
</script>
<script src="/modules/apostrophe-assets/js/vendor/setImmediate.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/lodash.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/async.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/moment.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery-url-parser.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery-ui.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery-textchange.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/pikaday.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery.cookie.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery.scrollintoview.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery.get-outer-html.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery.find-by-name.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery.projector.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery.bottomless.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery.selective.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery.images-ready.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery.radio.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/jquery.json-call.js"></script>
<script src="/modules/apostrophe-assets/js/vendor/moog.js"></script>
<script src="/modules/apostrophe-assets/js/always.js"></script>
<script src="/modules/apostrophe-browser-utils/js/always.js"></script>
<script src="/modules/apostrophe-ui/js/ui.js"></script>
<script src="/modules/apostrophe-ui/js/context.js"></script>
<script src="/modules/apostrophe-modal/js/modal.js"></script>
<script src="/modules/apostrophe-attachments/js/always.js"></script>
<script src="/modules/apostrophe-oembed/js/always.js"></script>
<script src="/modules/apostrophe-pages/js/always.js"></script>
<script src="/modules/apostrophe-search/js/always.js"></script>
<script src="/modules/apostrophe-areas/js/always.js"></script>
<script src="/modules/apostrophe-widgets/js/always.js"></script>
<script src="/modules/apostrophe-rich-text-widgets/js/always.js"></script>
<script src="/modules/apostrophe-video-widgets/js/always.js"></script>
<script src="/modules/apostrophe-images-widgets/js/always.js"></script>
<script src="/modules/my-apostrophe-assets/js/site.js"></script>
<script type="text/javascript">
apos.csrf();
apos.prefixAjax();
apos.create("apostrophe-browser-utils");
apos.create("apostrophe-ui", {"userTimeFormat":"h:mma"});
apos.create("apostrophe-oembed", {"action":"/modules/apostrophe-oembed"});
apos.mirror({"name":"apostrophe-rich-text-widgets","chain":[{"name":"apostrophe-widgets"},{"name":"my-apostrophe-widgets"},{"name":"apostrophe-rich-text-widgets"},{"name":"my-apostrophe-rich-text-widgets"}]});
apos.mirror({"name":"apostrophe-html-widgets","chain":[{"name":"apostrophe-widgets"},{"name":"my-apostrophe-widgets"},{"name":"apostrophe-html-widgets"},{"name":"my-apostrophe-html-widgets"}]});
apos.mirror({"name":"apostrophe-video-widgets","chain":[{"name":"apostrophe-widgets"},{"name":"my-apostrophe-widgets"},{"name":"apostrophe-video-widgets"},{"name":"my-apostrophe-video-widgets"}]});
apos.mirror({"name":"apostrophe-images-widgets","chain":[{"name":"apostrophe-widgets"},{"name":"my-apostrophe-widgets"},{"name":"apostrophe-pieces-widgets"},{"name":"my-apostrophe-pieces-widgets"},{"name":"apostrophe-images-widgets"},{"name":"my-apostrophe-images-widgets"}]});
apos.mirror({"name":"apostrophe-files-widgets","chain":[{"name":"apostrophe-widgets"},{"name":"my-apostrophe-widgets"},{"name":"apostrophe-pieces-widgets"},{"name":"my-apostrophe-pieces-widgets"},{"name":"apostrophe-files-widgets"},{"name":"my-apostrophe-files-widgets"}]});
apos.createModule("apostrophe-areas", {"action":"/modules/apostrophe-areas","messages":{"tryAgain":"Server error, please try again."}}, "areas");
apos.createModule("apostrophe-rich-text-widgets", {"name":"apostrophe-rich-text","label":"Rich Text","action":"/modules/apostrophe-rich-text-widgets","schema":[],"contextualOnly":true}, null);
apos.createModule("apostrophe-html-widgets", {"name":"apostrophe-html","label":"Raw HTML","action":"/modules/apostrophe-html-widgets","schema":[{"type":"string","name":"code","label":"Raw HTML (Code)","textarea":true,"group":{"name":"default","label":"Info"}}]}, null);
apos.createModule("apostrophe-video-widgets", {"name":"apostrophe-video","label":"Video","action":"/modules/apostrophe-video-widgets","schema":[{"type":"video","name":"video","label":"Video URL","required":true,"group":{"name":"default","label":"Info"}}]}, null);
apos.createModule("apostrophe-images-widgets", {"piecesModuleName":"apostrophe-images","name":"apostrophe-images","label":"Image(s)","action":"/modules/apostrophe-images-widgets","schema":[{"type":"select","name":"by","searchable":false,"label":"Select...","def":"id","choices":[{"value":"id","label":"Individually","showFields":["_pieces"]}],"group":{"name":"default","label":"Info"}},{"type":"joinByArray","name":"_pieces","label":"Individually","idsField":"pieceIds","withType":"apostrophe-image","relationshipsField":"relationships","relationship":[{"type":"integer","def":null,"name":"left","label":"Left"},{"type":"integer","def":null,"name":"top","label":"Top"},{"type":"integer","def":null,"name":"width","label":"Width"},{"type":"integer","def":null,"name":"height","label":"Height"},{"type":"float","def":null,"name":"x","label":"X"},{"type":"float","def":null,"name":"y","label":"Y"}],"group":{"name":"default","label":"Info"}}]}, null);
apos.createModule("apostrophe-files-widgets", {"piecesModuleName":"apostrophe-files","name":"apostrophe-files","label":"File(s)","action":"/modules/apostrophe-files-widgets","schema":[{"type":"select","name":"by","searchable":false,"label":"Select...","def":"all","choices":[{"value":"all","label":"All","showFields":["limitByAll"]},{"value":"id","label":"Individually","showFields":["_pieces"]},{"value":"tag","label":"By Tag","showFields":["tags","limitByTag"]}],"group":{"name":"default","label":"Info"}},{"type":"integer","name":"limitByAll","label":"Maximum displayed","def":5,"group":{"name":"default","label":"Info"}},{"type":"joinByArray","name":"_pieces","label":"Individually","idsField":"pieceIds","withType":"apostrophe-file","group":{"name":"default","label":"Info"}},{"type":"tags","name":"tags","label":"By Tag","group":{"name":"default","label":"Info"}},{"type":"integer","name":"limitByTag","label":"Maximum displayed","def":5,"group":{"name":"default","label":"Info"}}]}, null);
apos.pageReadyWhenCalm($("body"));;
apos.scene = "anon";
</script>
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Overswell Definition & Meaning - Merriam-Webster
The meaning of OVERSWELL is to cause to swell unduly or to excess.
Read more >Twisted Wonderland - JP Info & Popcorn Overbloat
Twisted Wonderland - JP Info & Popcorn Overbloat. Welcome to this Twisted Wonderland, a place that makes imagination pop into crack.
Read more >overswell - Wiktionary
(transitive, intransitive) To swell or rise above (something, especially the rim of a container, the sides of something hollow, etc.). quotations ▽synonyms △....
Read more >Overswelloverflow definition and meaning - Collins Dictionary
1. to flow or run over (a limit, brim, bank, etc) · 2. to fill or be filled beyond capacity so as to...
Read more >OverBloat on Instagram • Photos and videos
More camera effects. More stickers. More ways to message. Only on the app. Open the Instagram app. Not now.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks a million @boutell, Apostrophe’s now way, way better than CraftCMS. Hell yeah 🤘
PS, ya’ll should have that as an easy setting in user settings. I’ll fiddle around and make a PR in a few days adding that feature if that’s alright 😄
Sounds good.
On Wed, Nov 8, 2017 at 1:48 PM, Daniel Tamkin notifications@github.com wrote:
–
*THOMAS BOUTELL, *SUPPORT LEAD P’UNK AVENUE | (215) 755-1330 | punkave.com