This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const options = { | |
| firstPaint: false, | |
| firstContentfulPaint: false, | |
| timeToInteractive: false, | |
| googleAnalytics: { | |
| enable: false, | |
| timingVar: "name", | |
| }, | |
| logging: true, | |
| logPrefix: "⚡️ Perfume.js:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const perfume = new Perfume({ | |
| timeToInteractive: true | |
| }); | |
| // ⚡️ Perfume.js: Time to interactive 2452.07 ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| perfume.start('togglePopover'); | |
| $(element).popover('toggle'); | |
| perfume.endPaint('togglePopover'); | |
| // ⚡️ Perfume.js: togglePopover 10.54 ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Install | |
| npm install perfume.js --save-dev | |
| // Importing library | |
| // Import the generated bundle to use the whole library generated by this starter: | |
| import Perfume from 'perfume.js'; | |
| // Import the transpiled modules from `dist/es` in case you have a modular library: | |
| import Perfume from 'node_modules/perfume.js/dist/es/perfume'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const perfume = new Perfume({ | |
| googleAnalytics: { | |
| enable: true, | |
| timingVar: "userId" | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const perfume = new Perfume({ | |
| logPrefix: "🍻 Beerjs:" | |
| }); | |
| perfume.start('fibonacci'); | |
| fibonacci(400); | |
| const duration = this.perfume.end('fibonacci'); | |
| perfume.log('Custom logging', duration); | |
| // 🍻 Beerjs: Custom logging 0.14 ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| perfume.start('fibonacci'); | |
| fibonacci(400); | |
| perfume.end('fibonacci'); | |
| // ⚡️ Perfume.js: fibonacci 0.14 ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const perfume = new Perfume({ | |
| firstContentfulPaint: true | |
| }); | |
| // ⚡️ Perfume.js: First Contentful Paint 2029.00 ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class tasksList { | |
| constructor(ElementRef: ElementRef) { | |
| this.element = ElementRef.nativeElement; | |
| } | |
| // ... | |
| ngOnDestroy() { | |
| if (this.elLists) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class inputDueDate { | |
| constructor(ElementRef: ElementRef) { | |
| this.element = ElementRef.nativeElement; | |
| } | |
| ngOnInit() { | |
| //this.elDueDateContainer = document.querySelector('.dueDatePopover-container'); REMOVED | |
| this.elDueDateBadge = this.element.querySelector('.dueDate-badge'); | |
| //this.$elDueDateContainer = $(this.elDueDateContainer); REMOVED |